You are here

public function Typogrify::getFilters in Typogrify 8

File

src/TwigExtension/Typogrify.php, line 19

Class

Typogrify
A class providing Drupal Twig extensions.

Namespace

Drupal\typogrify\TwigExtension

Code

public function getFilters() {
  return [
    new \Twig_SimpleFilter('typogrify', [
      $this,
      'filter',
    ], [
      'is_safe' => [
        'html',
      ],
    ]),
  ];
}