public function TwigExtension::getFilters in Components! 3.x
Same name and namespace in other branches
- 8.2 src/Template/TwigExtension.php \Drupal\components\Template\TwigExtension::getFilters()
File
- src/
Template/ TwigExtension.php, line 27
Class
- TwigExtension
- A class providing components' Twig extensions.
Namespace
Drupal\components\TemplateCode
public function getFilters() : array {
return [
'recursive_merge' => new TwigFilter('recursive_merge', [
'Drupal\\components\\Template\\TwigExtension',
'recursiveMergeFilter',
]),
'set' => new TwigFilter('set', [
'Drupal\\components\\Template\\TwigExtension',
'setFilter',
]),
'add' => new TwigFilter('add', [
'Drupal\\components\\Template\\TwigExtension',
'addFilter',
]),
];
}