Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / shortcut / src / ShortcutForm.php
index fa62cdb685f9ebe3fb4a1099146331221033c6ff..26a52629b2f7536bcfc66dd8ba73aef06c0566d0 100644 (file)
@@ -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',