summaryrefslogtreecommitdiffstats
path: root/core/modules/user/src/RoleForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/user/src/RoleForm.php')
-rw-r--r--core/modules/user/src/RoleForm.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/user/src/RoleForm.php b/core/modules/user/src/RoleForm.php
index e40067c..023159b 100644
--- a/core/modules/user/src/RoleForm.php
+++ b/core/modules/user/src/RoleForm.php
@@ -57,11 +57,11 @@ class RoleForm extends EntityForm {
$edit_link = $this->entity->link($this->t('Edit'));
if ($status == SAVED_UPDATED) {
- drupal_set_message($this->t('Role %label has been updated.', ['%label' => $entity->label()]));
+ $this->messenger()->addStatus($this->t('Role %label has been updated.', ['%label' => $entity->label()]));
$this->logger('user')->notice('Role %label has been updated.', ['%label' => $entity->label(), 'link' => $edit_link]);
}
else {
- drupal_set_message($this->t('Role %label has been added.', ['%label' => $entity->label()]));
+ $this->messenger()->addStatus($this->t('Role %label has been added.', ['%label' => $entity->label()]));
$this->logger('user')->notice('Role %label has been added.', ['%label' => $entity->label(), 'link' => $edit_link]);
}
$form_state->setRedirect('entity.user_role.collection');