public function TwigExtension::getFunctions in Components! 8.2
Same name and namespace in other branches
- 8 src/Template/TwigExtension.php \Drupal\components\Template\TwigExtension::getFunctions()
- 3.x src/Template/TwigExtension.php \Drupal\components\Template\TwigExtension::getFunctions()
File
- src/
Template/ TwigExtension.php, line 18
Class
- TwigExtension
- A class providing components' Twig extensions.
Namespace
Drupal\components\TemplateCode
public function getFunctions() {
return [
new TwigFunction('template', [
$this,
'template',
], [
'is_variadic' => TRUE,
]),
];
}