summaryrefslogtreecommitdiffstats
path: root/core/modules/shortcut/src/ShortcutForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/shortcut/src/ShortcutForm.php')
-rw-r--r--core/modules/shortcut/src/ShortcutForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/shortcut/src/ShortcutForm.php b/core/modules/shortcut/src/ShortcutForm.php
index fa62cdb..26a5262 100644
--- a/core/modules/shortcut/src/ShortcutForm.php
+++ b/core/modules/shortcut/src/ShortcutForm.php
@@ -42,7 +42,7 @@ class ShortcutForm extends ContentEntityForm {
else {
$message = $this->t('Added a shortcut for %title.', ['%title' => $view_link]);
}
- drupal_set_message($message);
+ $this->messenger()->addStatus($message);
$form_state->setRedirect(
'entity.shortcut_set.customize_form',