function TwigExtensionTestHooks::theme
Implements hook_theme().
File
-
core/
modules/ system/ tests/ modules/ twig_extension_test/ src/ Hook/ TwigExtensionTestHooks.php, line 17
Class
- TwigExtensionTestHooks
- Hook implementations for twig_extension_test.
Namespace
Drupal\twig_extension_test\HookCode
public function theme($existing, $type, $theme, $path) : array {
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',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.