summaryrefslogtreecommitdiffstats
path: root/core/modules/search/src/Form/ReindexConfirm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/search/src/Form/ReindexConfirm.php')
-rw-r--r--core/modules/search/src/Form/ReindexConfirm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/search/src/Form/ReindexConfirm.php b/core/modules/search/src/Form/ReindexConfirm.php
index 2a30cb5..a9a2cd0 100644
--- a/core/modules/search/src/Form/ReindexConfirm.php
+++ b/core/modules/search/src/Form/ReindexConfirm.php
@@ -65,7 +65,7 @@ class ReindexConfirm extends ConfirmFormBase {
foreach ($search_page_repository->getIndexableSearchPages() as $entity) {
$entity->getPlugin()->markForReindex();
}
- drupal_set_message($this->t('All search indexes will be rebuilt.'));
+ $this->messenger()->addStatus($this->t('All search indexes will be rebuilt.'));
$form_state->setRedirectUrl($this->getCancelUrl());
}
}