summaryrefslogtreecommitdiffstats
path: root/core/modules/user/src/Form/UserCancelForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/user/src/Form/UserCancelForm.php')
-rw-r--r--core/modules/user/src/Form/UserCancelForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/user/src/Form/UserCancelForm.php b/core/modules/user/src/Form/UserCancelForm.php
index da7a5f4..a1fd5f7 100644
--- a/core/modules/user/src/Form/UserCancelForm.php
+++ b/core/modules/user/src/Form/UserCancelForm.php
@@ -139,7 +139,7 @@ class UserCancelForm extends ContentEntityConfirmFormBase {
$this->entity->user_cancel_notify = $form_state->getValue('user_cancel_notify');
$this->entity->save();
_user_mail_notify('cancel_confirm', $this->entity);
- drupal_set_message($this->t('A confirmation request to cancel your account has been sent to your email address.'));
+ $this->messenger()->addStatus($this->t('A confirmation request to cancel your account has been sent to your email address.'));
$this->logger('user')->notice('Sent account cancellation request to %name %email.', ['%name' => $this->entity->label(), '%email' => '<' . $this->entity->getEmail() . '>']);
$form_state->setRedirect(