X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fban%2Fsrc%2FForm%2FBanDelete.php;h=9a3ddd48cfd17446bf0734f51316a33d6580247c;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=3d14ca3415398d5707d803255a2e2eee9ddbfd9e;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/ban/src/Form/BanDelete.php b/web/core/modules/ban/src/Form/BanDelete.php index 3d14ca341..9a3ddd48c 100644 --- a/web/core/modules/ban/src/Form/BanDelete.php +++ b/web/core/modules/ban/src/Form/BanDelete.php @@ -11,6 +11,8 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; /** * Provides a form to unban IP addresses. + * + * @internal */ class BanDelete extends ConfirmFormBase { @@ -94,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()); }