You are here

public function TwigExtension::getFilters in Components! 8.2

Same name and namespace in other branches
  1. 3.x 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\Template

Code

public function getFilters() {
  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',
    ]),
  ];
}