You are here

public function FilterExtension::getFilters in Thunder 8.2

Same name and namespace in other branches
  1. 8.5 modules/thunder_article/src/Twig/FilterExtension.php \Drupal\thunder_article\Twig\FilterExtension::getFilters()
  2. 8.3 modules/thunder_article/src/Twig/FilterExtension.php \Drupal\thunder_article\Twig\FilterExtension::getFilters()
  3. 8.4 modules/thunder_article/src/Twig/FilterExtension.php \Drupal\thunder_article\Twig\FilterExtension::getFilters()
  4. 6.2.x modules/thunder_article/src/Twig/FilterExtension.php \Drupal\thunder_article\Twig\FilterExtension::getFilters()
  5. 6.0.x modules/thunder_article/src/Twig/FilterExtension.php \Drupal\thunder_article\Twig\FilterExtension::getFilters()
  6. 6.1.x modules/thunder_article/src/Twig/FilterExtension.php \Drupal\thunder_article\Twig\FilterExtension::getFilters()

Returns introduced filters.

Return value

array Declared Twig filters

File

modules/thunder_article/src/Twig/FilterExtension.php, line 16

Class

FilterExtension
Introduce some twig filters.

Namespace

Drupal\thunder_article\Twig

Code

public function getFilters() {
  return [
    new \Twig_SimpleFilter('plain_text', [
      $this,
      'plainText',
    ]),
    new \Twig_SimpleFilter('basic_format', [
      $this,
      'basicFormat',
    ], [
      'is_safe' => [
        'html',
      ],
    ]),
  ];
}