function ThemeTestHooks::preprocessThemeTestDeprecationsPreprocess
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/theme_test/src/Hook/ThemeTestHooks.php \Drupal\theme_test\Hook\ThemeTestHooks::preprocessThemeTestDeprecationsPreprocess()
Prepares variables for theme_test_deprecations_preprocess.
Default template: theme-test-deprecations-preprocess.html.twig.
Parameters
array $variables: An associative array of variables.
File
-
core/
modules/ system/ tests/ modules/ theme_test/ src/ Hook/ ThemeTestHooks.php, line 149
Class
- ThemeTestHooks
- Hook implementations for theme_test.
Namespace
Drupal\theme_test\HookCode
public function preprocessThemeTestDeprecationsPreprocess(array &$variables) : void {
$variables = array_merge($variables, \Drupal::state()->get('theme_test.theme_test_deprecations_preprocess'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.