summaryrefslogtreecommitdiffstats
path: root/core/modules/search/src/Form/SearchPageAddForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/search/src/Form/SearchPageAddForm.php')
-rw-r--r--core/modules/search/src/Form/SearchPageAddForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/search/src/Form/SearchPageAddForm.php b/core/modules/search/src/Form/SearchPageAddForm.php
index 6f5c142..492d6c0 100644
--- a/core/modules/search/src/Form/SearchPageAddForm.php
+++ b/core/modules/search/src/Form/SearchPageAddForm.php
@@ -41,7 +41,7 @@ class SearchPageAddForm extends SearchPageFormBase {
parent::save($form, $form_state);
- drupal_set_message($this->t('The %label search page has been added.', ['%label' => $this->entity->label()]));
+ $this->messenger()->addStatus($this->t('The %label search page has been added.', ['%label' => $this->entity->label()]));
}
}