X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fshortcut%2Fsrc%2FShortcutSetForm.php;h=2a27cb7029997c2afffd0c66bed9538a60be393b;hb=refs%2Fheads%2Fd864;hp=3c8f4a798a69ceb7f95bdf08fb7cb094e17a0023;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/web/core/modules/shortcut/src/ShortcutSetForm.php b/web/core/modules/shortcut/src/ShortcutSetForm.php index 3c8f4a798..2a27cb702 100644 --- a/web/core/modules/shortcut/src/ShortcutSetForm.php +++ b/web/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')); }