Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / system / tests / modules / theme_suggestions_test / theme_suggestions_test.module
index 50fb86d2b83f6e4ca3e5eeabe15d248ee47daa52..cbc5b380206ab32b423b24ffca0a925a6aa37a28 100644 (file)
@@ -21,7 +21,7 @@ function theme_suggestions_test_theme() {
  * Implements hook_theme_suggestions_alter().
  */
 function theme_suggestions_test_theme_suggestions_alter(array &$suggestions, array $variables, $hook) {
-  drupal_set_message(__FUNCTION__ . '() executed.');
+  \Drupal::messenger()->addStatus(__FUNCTION__ . '() executed.');
   if ($hook == 'theme_test_general_suggestions') {
     $suggestions[] = $hook . '__module_override';
   }
@@ -31,7 +31,7 @@ function theme_suggestions_test_theme_suggestions_alter(array &$suggestions, arr
  * Implements hook_theme_suggestions_HOOK_alter().
  */
 function theme_suggestions_test_theme_suggestions_theme_test_suggestions_alter(array &$suggestions, array $variables) {
-  drupal_set_message(__FUNCTION__ . '() executed.');
+  \Drupal::messenger()->addStatus(__FUNCTION__ . '() executed.');
   $suggestions[] = 'theme_test_suggestions__' . 'module_override';
 }