summaryrefslogtreecommitdiffstats
path: root/core/modules/menu_ui/src/Form/MenuLinkResetForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/menu_ui/src/Form/MenuLinkResetForm.php')
-rw-r--r--core/modules/menu_ui/src/Form/MenuLinkResetForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/menu_ui/src/Form/MenuLinkResetForm.php b/core/modules/menu_ui/src/Form/MenuLinkResetForm.php
index de9dccb..ae307bc 100644
--- a/core/modules/menu_ui/src/Form/MenuLinkResetForm.php
+++ b/core/modules/menu_ui/src/Form/MenuLinkResetForm.php
@@ -102,7 +102,7 @@ class MenuLinkResetForm extends ConfirmFormBase {
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->link = $this->menuLinkManager->resetLink($this->link->getPluginId());
- drupal_set_message($this->t('The menu link was reset to its default settings.'));
+ $this->messenger()->addStatus($this->t('The menu link was reset to its default settings.'));
$form_state->setRedirectUrl($this->getCancelUrl());
}