summaryrefslogtreecommitdiffstats
path: root/core/modules/shortcut/src/ShortcutSetForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/shortcut/src/ShortcutSetForm.php')
-rw-r--r--core/modules/shortcut/src/ShortcutSetForm.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/shortcut/src/ShortcutSetForm.php b/core/modules/shortcut/src/ShortcutSetForm.php
index 3c8f4a7..2a27cb7 100644
--- a/core/modules/shortcut/src/ShortcutSetForm.php
+++ b/core/modules/shortcut/src/ShortcutSetForm.php
@@ -53,10 +53,10 @@ class ShortcutSetForm extends BundleEntityFormBase {
$entity->save();
if ($is_new) {
- drupal_set_message(t('The %set_name shortcut set has been created. You can edit it from this page.', ['%set_name' => $entity->label()]));
+ $this->messenger()->addStatus($this->t('The %set_name shortcut set has been created. You can edit it from this page.', ['%set_name' => $entity->label()]));
}
else {
- drupal_set_message(t('Updated set name to %set-name.', ['%set-name' => $entity->label()]));
+ $this->messenger()->addStatus($this->t('Updated set name to %set-name.', ['%set-name' => $entity->label()]));
}
$form_state->setRedirectUrl($this->entity->urlInfo('customize-form'));
}