function test_theme_preprocess_theme_test_preprocess_suggestions__kitten
Same name in other branches
- 9 core/modules/system/tests/themes/test_theme/test_theme.theme \test_theme_preprocess_theme_test_preprocess_suggestions__kitten()
- 8.9.x core/modules/system/tests/themes/test_theme/test_theme.theme \test_theme_preprocess_theme_test_preprocess_suggestions__kitten()
- 11.x core/modules/system/tests/themes/test_theme/test_theme.theme \test_theme_preprocess_theme_test_preprocess_suggestions__kitten()
Tests a theme overriding a default hook with a suggestion.
1 string reference to 'test_theme_preprocess_theme_test_preprocess_suggestions__kitten'
- RegistryTest::testSuggestionPreprocessFunctions in core/
tests/ Drupal/ KernelTests/ Core/ Theme/ RegistryTest.php - Tests the theme registry with suggestions.
File
-
core/
modules/ system/ tests/ themes/ test_theme/ test_theme.theme, line 107
Code
function test_theme_preprocess_theme_test_preprocess_suggestions__kitten(&$variables) {
$variables['foo'] = 'Kitten';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.