You are here

class Rot13Extension in Obfuscate Email 8

A class providing Drupal Twig extensions.

Specifically Twig functions, filter and node visitors.

Hierarchy

Expanded class hierarchy of Rot13Extension

See also

\Drupal\Core\CoreServiceProvider

1 string reference to 'Rot13Extension'
rot13.services.yml in modules/rot13/rot13.services.yml
modules/rot13/rot13.services.yml
1 service uses Rot13Extension
rot13.twig in modules/rot13/rot13.services.yml
Drupal\rot13\Twig\Rot13Extension

File

modules/rot13/src/Twig/Rot13Extension.php, line 15

Namespace

Drupal\rot13\Twig
View source
class Rot13Extension extends Twig_Extension {

  /**
   * {@inheritdoc}
   */
  public function getFilters() {
    return array(
      new Twig_SimpleFilter('rot13', 'str_rot13'),
    );
  }

  /**
   * {@inheritdoc}
   */
  public function getName() {
    return 'rot13_twig_extension';
  }

}

Members