Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / system / tests / themes / test_theme / test_theme.theme
index aa399b66c5370d11b7214e63b030440fa13a2614..423390d2225c08a855e392951fdf314a4b52fce7 100644 (file)
@@ -53,7 +53,7 @@ function test_theme_theme_test_alter_alter(&$data) {
  * Implements hook_theme_suggestions_alter().
  */
 function test_theme_theme_suggestions_alter(array &$suggestions, array $variables, $hook) {
-  drupal_set_message(__FUNCTION__ . '() executed.');
+  \Drupal::messenger()->addStatus(__FUNCTION__ . '() executed.');
   // Theme alter hooks run after module alter hooks, so add this theme
   // suggestion to the beginning of the array so that the suggestion added by
   // the theme_suggestions_test module can be picked up when that module is
@@ -67,7 +67,7 @@ function test_theme_theme_suggestions_alter(array &$suggestions, array $variable
  * Implements hook_theme_suggestions_HOOK_alter().
  */
 function test_theme_theme_suggestions_theme_test_suggestions_alter(array &$suggestions, array $variables) {
-  drupal_set_message(__FUNCTION__ . '() executed.');
+  \Drupal::messenger()->addStatus(__FUNCTION__ . '() executed.');
   // Theme alter hooks run after module alter hooks, so add this theme
   // suggestion to the beginning of the array so that the suggestion added by
   // the theme_suggestions_test module can be picked up when that module is