You are here

public function TwigSanitize::getFilters in Twig Tools 8

File

src/TwigExtension/TwigSanitize.php, line 15

Class

TwigSanitize
Class TwigSanitize.

Namespace

Drupal\twig_tools\TwigExtension

Code

public function getFilters() {
  return [
    new \Twig_SimpleFilter('clean_class_array', [
      $this,
      'cleanClassArray',
    ]),
    new \Twig_SimpleFilter('array_unique', [
      $this,
      'arrayUnique',
    ]),
    new \Twig_SimpleFilter('remove_empty', [
      $this,
      'removeEmpty',
    ]),
    new \Twig_SimpleFilter('scrub_class_array', [
      $this,
      'scrubClassArray',
    ]),
  ];
}