function template_preprocess_twig_tweak_test in Twig Tweak 3.1.x
Same name and namespace in other branches
- 8.2 tests/twig_tweak_test/twig_tweak_test.module \template_preprocess_twig_tweak_test()
- 8 tests/twig_tweak_test/twig_tweak_test.module \template_preprocess_twig_tweak_test()
- 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);
}