You are here

function test_theme_preprocess_theme_test_preprocess_suggestions__kitten in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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/modules/system/src/Tests/Theme/RegistryTest.php
Tests the theme registry with suggestions.

File

core/modules/system/tests/themes/test_theme/test_theme.theme, line 140
Theme to help test the Twig engine.

Code

function test_theme_preprocess_theme_test_preprocess_suggestions__kitten(&$variables) {
  $variables['foo'] = 'Kitten';
}