Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / search / tests / modules / search_langcode_test / search_langcode_test.module
index c7d96245df128128319e400d7d8f01f8a961e480..38330602a5a624e3a808ee1fe692bf99061e11e7 100644 (file)
@@ -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') {