summaryrefslogtreecommitdiffstats
path: root/core/modules/ban/src/Form/BanAdmin.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/ban/src/Form/BanAdmin.php')
-rw-r--r--core/modules/ban/src/Form/BanAdmin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/ban/src/Form/BanAdmin.php b/core/modules/ban/src/Form/BanAdmin.php
index 5d8e795..d71be8d 100644
--- a/core/modules/ban/src/Form/BanAdmin.php
+++ b/core/modules/ban/src/Form/BanAdmin.php
@@ -120,7 +120,7 @@ class BanAdmin extends FormBase {
public function submitForm(array &$form, FormStateInterface $form_state) {
$ip = trim($form_state->getValue('ip'));
$this->ipManager->banIp($ip);
- drupal_set_message($this->t('The IP address %ip has been banned.', ['%ip' => $ip]));
+ $this->messenger()->addStatus($this->t('The IP address %ip has been banned.', ['%ip' => $ip]));
$form_state->setRedirect('ban.admin_page');
}