function TestThemeHooks::preprocessThemeTestPreprocessSuggestions__kitten
Implements hook_preprocess_HOOK().
Tests a theme overriding a default hook with a suggestion.
Attributes
#[Hook('preprocess_theme_test_preprocess_suggestions__kitten')]
File
-
core/
modules/ system/ tests/ themes/ test_theme/ src/ Hook/ TestThemeHooks.php, line 135
Class
- TestThemeHooks
- Hook implementations for test_theme.
Namespace
Drupal\test_theme\HookCode
public function preprocessThemeTestPreprocessSuggestions__kitten(array &$variables) : void {
$variables['foo'] = 'Kitten';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.