twig_extension_test.module in Drupal 8
Same filename and directory in other branches
Helper module for Twig extension tests.
File
core/modules/system/tests/modules/twig_extension_test/twig_extension_test.moduleView source
<?php
/**
* @file
* Helper module for Twig extension tests.
*/
/**
* Implements hook_theme().
*/
function twig_extension_test_theme($existing, $type, $theme, $path) {
return [
'twig_extension_test_filter' => [
'variables' => [
'message' => NULL,
'safe_join_items' => NULL,
],
'template' => 'twig_extension_test.filter',
],
'twig_extension_test_function' => [
'render element' => 'element',
'template' => 'twig_extension_test.function',
],
];
}
Functions
Name | Description |
---|---|
twig_extension_test_theme | Implements hook_theme(). |