You are here

function test_theme_preprocess_theme_test_preprocess_suggestions in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/tests/themes/test_theme/test_theme.theme \test_theme_preprocess_theme_test_preprocess_suggestions()

Tests a theme overriding a default hook with a suggestion.

Implements hook_preprocess_HOOK().

2 string references to 'test_theme_preprocess_theme_test_preprocess_suggestions'
RegistryLegacyTest::testSuggestionPreprocessFunctions in core/tests/Drupal/KernelTests/Core/Theme/RegistryLegacyTest.php
Tests the theme registry with theme functions with suggestions.
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 83
Theme to help test the Twig engine.

Code

function test_theme_preprocess_theme_test_preprocess_suggestions(&$variables) {
  $variables['foo'] = 'Theme hook implementor=test_theme_preprocess_theme_test_preprocess_suggestions().';
}