X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fshortcut%2Fsrc%2FController%2FShortcutController.php;fp=web%2Fcore%2Fmodules%2Fshortcut%2Fsrc%2FController%2FShortcutController.php;h=dbb24e582e9257748106621563123a4272582b05;hp=4f33b0b555737fb5b15545047313e624e577f76d;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/shortcut/src/Controller/ShortcutController.php b/web/core/modules/shortcut/src/Controller/ShortcutController.php index 4f33b0b55..dbb24e582 100644 --- a/web/core/modules/shortcut/src/Controller/ShortcutController.php +++ b/web/core/modules/shortcut/src/Controller/ShortcutController.php @@ -40,10 +40,10 @@ class ShortcutController extends ControllerBase { try { $shortcut->delete(); - drupal_set_message($this->t('The shortcut %title has been deleted.', ['%title' => $label])); + $this->messenger()->addStatus($this->t('The shortcut %title has been deleted.', ['%title' => $label])); } catch (\Exception $e) { - drupal_set_message($this->t('Unable to delete the shortcut for %title.', ['%title' => $label]), 'error'); + $this->messenger()->addStatus($this->t('Unable to delete the shortcut for %title.', ['%title' => $label]), 'error'); } return $this->redirect('');