You are here

function template_preprocess_twig_tweak_test in Twig Tweak 3.1.x

Same name and namespace in other branches
  1. 8.2 tests/twig_tweak_test/twig_tweak_test.module \template_preprocess_twig_tweak_test()
  2. 8 tests/twig_tweak_test/twig_tweak_test.module \template_preprocess_twig_tweak_test()
  3. 3.x tests/twig_tweak_test/twig_tweak_test.module \template_preprocess_twig_tweak_test()

Prepares variables for twig-tweak-test template.

File

tests/twig_tweak_test/twig_tweak_test.module, line 35
Primary module hooks for Twig Tweak test module.

Code

function template_preprocess_twig_tweak_test(array &$vars) : void {
  $vars['node'] = Node::load(1);
}