summaryrefslogtreecommitdiffstats
path: root/core/modules/menu_ui/src/Form/MenuLinkEditForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/menu_ui/src/Form/MenuLinkEditForm.php')
-rw-r--r--core/modules/menu_ui/src/Form/MenuLinkEditForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/menu_ui/src/Form/MenuLinkEditForm.php b/core/modules/menu_ui/src/Form/MenuLinkEditForm.php
index 6cb50da..1afafd6 100644
--- a/core/modules/menu_ui/src/Form/MenuLinkEditForm.php
+++ b/core/modules/menu_ui/src/Form/MenuLinkEditForm.php
@@ -91,7 +91,7 @@ class MenuLinkEditForm extends FormBase {
public function submitForm(array &$form, FormStateInterface $form_state) {
$link = $form['#plugin_form']->submitConfigurationForm($form, $form_state);
- 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.edit_form',
['menu' => $link->getMenuName()]