function 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 132

Class

ThemeTestHooks
Hook implementations for theme_test.

Namespace

Drupal\theme_test\Hook

Code

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.