summaryrefslogtreecommitdiffstats
path: root/core/modules/menu_ui/src/MenuForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/menu_ui/src/MenuForm.php')
-rw-r--r--core/modules/menu_ui/src/MenuForm.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/menu_ui/src/MenuForm.php b/core/modules/menu_ui/src/MenuForm.php
index aec2c49..9291fda 100644
--- a/core/modules/menu_ui/src/MenuForm.php
+++ b/core/modules/menu_ui/src/MenuForm.php
@@ -166,11 +166,11 @@ class MenuForm extends EntityForm {
$status = $menu->save();
$edit_link = $this->entity->link($this->t('Edit'));
if ($status == SAVED_UPDATED) {
- drupal_set_message($this->t('Menu %label has been updated.', ['%label' => $menu->label()]));
+ $this->messenger()->addStatus($this->t('Menu %label has been updated.', ['%label' => $menu->label()]));
$this->logger('menu')->notice('Menu %label has been updated.', ['%label' => $menu->label(), 'link' => $edit_link]);
}
else {
- drupal_set_message($this->t('Menu %label has been added.', ['%label' => $menu->label()]));
+ $this->messenger()->addStatus($this->t('Menu %label has been added.', ['%label' => $menu->label()]));
$this->logger('menu')->notice('Menu %label has been added.', ['%label' => $menu->label(), 'link' => $edit_link]);
}