function TestThemeHooks::preprocessThemeTestPreprocessSuggestions

Implements hook_preprocess_HOOK() for theme_test_preprocess_suggestions.

Tests a theme overriding a default hook with a suggestion.

Attributes

#[Hook('preprocess_theme_test_preprocess_suggestions')]

File

core/modules/system/tests/themes/test_theme/src/Hook/TestThemeHooks.php, line 115

Class

TestThemeHooks
Hook implementations for test_theme.

Namespace

Drupal\test_theme\Hook

Code

public function preprocessThemeTestPreprocessSuggestions(array &$variables) : void {
  $variables['foo'] = 'Theme hook implementor=test_theme_preprocess_theme_test_preprocess_suggestions().';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.