summaryrefslogtreecommitdiffstats
path: root/core/modules/ban/src/Form/BanDelete.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/ban/src/Form/BanDelete.php')
-rw-r--r--core/modules/ban/src/Form/BanDelete.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/ban/src/Form/BanDelete.php b/core/modules/ban/src/Form/BanDelete.php
index 2d5731f..9a3ddd4 100644
--- a/core/modules/ban/src/Form/BanDelete.php
+++ b/core/modules/ban/src/Form/BanDelete.php
@@ -96,7 +96,7 @@ class BanDelete extends ConfirmFormBase {
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->ipManager->unbanIp($this->banIp);
$this->logger('user')->notice('Deleted %ip', ['%ip' => $this->banIp]);
- drupal_set_message($this->t('The IP address %ip was deleted.', ['%ip' => $this->banIp]));
+ $this->messenger()->addStatus($this->t('The IP address %ip was deleted.', ['%ip' => $this->banIp]));
$form_state->setRedirectUrl($this->getCancelUrl());
}