X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fshortcut%2Fsrc%2FShortcutForm.php;fp=web%2Fcore%2Fmodules%2Fshortcut%2Fsrc%2FShortcutForm.php;h=26a52629b2f7536bcfc66dd8ba73aef06c0566d0;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=fa62cdb685f9ebe3fb4a1099146331221033c6ff;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/web/core/modules/shortcut/src/ShortcutForm.php b/web/core/modules/shortcut/src/ShortcutForm.php index fa62cdb68..26a52629b 100644 --- a/web/core/modules/shortcut/src/ShortcutForm.php +++ b/web/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',