summaryrefslogtreecommitdiffstats
path: root/core/modules/menu_link_content/src/Form/MenuLinkContentForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/menu_link_content/src/Form/MenuLinkContentForm.php')
-rw-r--r--core/modules/menu_link_content/src/Form/MenuLinkContentForm.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/menu_link_content/src/Form/MenuLinkContentForm.php b/core/modules/menu_link_content/src/Form/MenuLinkContentForm.php
index 7175c1b..60e086b 100644
--- a/core/modules/menu_link_content/src/Form/MenuLinkContentForm.php
+++ b/core/modules/menu_link_content/src/Form/MenuLinkContentForm.php
@@ -130,14 +130,14 @@ class MenuLinkContentForm extends ContentEntityForm {
$saved = $menu_link->save();
if ($saved) {
- drupal_set_message($this->t('The menu link has been saved.'));
+ $this->messenger()->addStatus($this->t('The menu link has been saved.'));
$form_state->setRedirect(
'entity.menu_link_content.canonical',
['menu_link_content' => $menu_link->id()]
);
}
else {
- drupal_set_message($this->t('There was an error saving the menu link.'), 'error');
+ $this->messenger()->addError($this->t('There was an error saving the menu link.'));
$form_state->setRebuild();
}
}