summaryrefslogtreecommitdiffstats
path: root/core/modules/search/tests/modules/search_embedded_form
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/search/tests/modules/search_embedded_form')
-rw-r--r--core/modules/search/tests/modules/search_embedded_form/src/Form/SearchEmbeddedForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/search/tests/modules/search_embedded_form/src/Form/SearchEmbeddedForm.php b/core/modules/search/tests/modules/search_embedded_form/src/Form/SearchEmbeddedForm.php
index b1e26ca..5f13ee9 100644
--- a/core/modules/search/tests/modules/search_embedded_form/src/Form/SearchEmbeddedForm.php
+++ b/core/modules/search/tests/modules/search_embedded_form/src/Form/SearchEmbeddedForm.php
@@ -50,7 +50,7 @@ class SearchEmbeddedForm extends FormBase {
$state = \Drupal::state();
$submit_count = (int) $state->get('search_embedded_form.submit_count');
$state->set('search_embedded_form.submit_count', $submit_count + 1);
- drupal_set_message($this->t('Test form was submitted'));
+ $this->messenger()->addStatus($this->t('Test form was submitted'));
}
}