function ThemeTestHooks::themeSuggestionsAlter

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/theme_test/src/Hook/ThemeTestHooks.php \Drupal\theme_test\Hook\ThemeTestHooks::themeSuggestionsAlter()

Implements hook_theme_suggestions_alter().

Attributes

#[Hook('theme_suggestions_alter')]

File

core/modules/system/tests/modules/theme_test/src/Hook/ThemeTestHooks.php, line 238

Class

ThemeTestHooks
Hook implementations for theme_test.

Namespace

Drupal\theme_test\Hook

Code

public function themeSuggestionsAlter(array &$suggestions, array $variables, $hook) : void {
  \Drupal::messenger()->addStatus('theme_test_theme_suggestions_alter() executed for ' . $hook . '.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.