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

Class

ThemeTestHooks
Hook implementations for theme_test.

Namespace

Drupal\theme_test\Hook

Code

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.