function ThemeSuggestionsTestHooks::themeSuggestionsThemeTestSuggestionsAlter
Implements hook_theme_suggestions_HOOK_alter().
File
-
core/
modules/ system/ tests/ modules/ theme_suggestions_test/ src/ Hook/ ThemeSuggestionsTestHooks.php, line 29
Class
- ThemeSuggestionsTestHooks
- Hook implementations for theme_suggestions_test.
Namespace
Drupal\theme_suggestions_test\HookCode
public function themeSuggestionsThemeTestSuggestionsAlter(array &$suggestions, array $variables) {
\Drupal::messenger()->addStatus('theme_suggestions_test_theme_suggestions_theme_test_suggestions_alter' . '() executed.');
$suggestions[] = 'theme_test_suggestions__module_override';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.