X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fban%2Fsrc%2FForm%2FBanDelete.php;fp=web%2Fcore%2Fmodules%2Fban%2Fsrc%2FForm%2FBanDelete.php;h=9a3ddd48cfd17446bf0734f51316a33d6580247c;hp=2d5731f139940703c177bdc53dbff0f10bb37636;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/ban/src/Form/BanDelete.php b/web/core/modules/ban/src/Form/BanDelete.php index 2d5731f13..9a3ddd48c 100644 --- a/web/core/modules/ban/src/Form/BanDelete.php +++ b/web/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()); }