class TwigExtensionTestHooks
Hook implementations for twig_extension_test.
Hierarchy
- class \Drupal\twig_extension_test\Hook\TwigExtensionTestHooks
Expanded class hierarchy of TwigExtensionTestHooks
File
-
core/
modules/ system/ tests/ modules/ twig_extension_test/ src/ Hook/ TwigExtensionTestHooks.php, line 12
Namespace
Drupal\twig_extension_test\HookView source
class TwigExtensionTestHooks {
/**
* Implements hook_theme().
*/
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',
],
];
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
TwigExtensionTestHooks::theme | public | function | Implements hook_theme(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.