function TestThemeHooks::preprocessTwigThemeTestPhpVariables

Implements hook_preprocess_HOOK() for twig_theme_test_php_variables.

Attributes

#[Hook('preprocess_twig_theme_test_php_variables')]

File

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

Class

TestThemeHooks
Hook implementations for test_theme.

Namespace

Drupal\test_theme\Hook

Code

public function preprocessTwigThemeTestPhpVariables(array &$variables) : void {
  $variables['php_values'] = TwigThemeTestUtils::phpValues();
}

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