X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd8%2Ftemplate-module.twig;fp=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd8%2Ftemplate-module.twig;h=da322d1c0114ac1434e1c41e9b982cb49a0303db;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/template-module.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/template-module.twig new file mode 100644 index 000000000..da322d1c0 --- /dev/null +++ b/vendor/chi-teck/drupal-code-generator/templates/d8/template-module.twig @@ -0,0 +1,34 @@ + [ + 'variables' => ['foo' => NULL], + ], + ]; +} +{% endif %} +{% if create_preprocess %} + +/** + * Prepares variables for {{ template_name }} template. + * + * Default template: {{ template_name }}.html.twig. + * + * @param array $variables + * An associative array containing: + * - foo: Foo variable description. + */ +function template_preprocess_{{ template_name|h2u }}(array &$variables) { + $variables['foo'] = 'bar'; +} +{% endif %}