summaryrefslogtreecommitdiffstats
path: root/core/modules/search/tests/modules/search_langcode_test/search_langcode_test.module
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/search/tests/modules/search_langcode_test/search_langcode_test.module')
-rw-r--r--core/modules/search/tests/modules/search_langcode_test/search_langcode_test.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/search/tests/modules/search_langcode_test/search_langcode_test.module b/core/modules/search/tests/modules/search_langcode_test/search_langcode_test.module
index c7d9624..3833060 100644
--- a/core/modules/search/tests/modules/search_langcode_test/search_langcode_test.module
+++ b/core/modules/search/tests/modules/search_langcode_test/search_langcode_test.module
@@ -19,13 +19,13 @@ function search_langcode_test_search_preprocess($text, $langcode = NULL) {
// Prints the langcode for testPreprocessLangcode() and adds some
// extra text.
else {
- drupal_set_message('Langcode Preprocess Test: ' . $langcode);
+ \Drupal::messenger()->addStatus('Langcode Preprocess Test: ' . $langcode);
$text .= 'Additional text';
}
}
// Prints the langcode for testPreprocessLangcode().
elseif (isset($langcode)) {
- drupal_set_message('Langcode Preprocess Test: ' . $langcode);
+ \Drupal::messenger()->addStatus('Langcode Preprocess Test: ' . $langcode);
// Preprocessing for the excerpt test.
if ($langcode == 'ex') {