function ThemeTestHooks::themeSuggestionsThemeTestPreprocessSuggestions
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/theme_test/src/Hook/ThemeTestHooks.php \Drupal\theme_test\Hook\ThemeTestHooks::themeSuggestionsThemeTestPreprocessSuggestions()
Implements hook_theme_suggestions_HOOK().
Attributes
#[Hook('theme_suggestions_theme_test_preprocess_suggestions')]
File
-
core/
modules/ system/ tests/ modules/ theme_test/ src/ Hook/ ThemeTestHooks.php, line 182
Class
- ThemeTestHooks
- Hook implementations for theme_test.
Namespace
Drupal\theme_test\HookCode
public function themeSuggestionsThemeTestPreprocessSuggestions(array $variables) : array {
return [
'theme_test_preprocess_suggestions__' . $variables['foo'],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.