You are here

public function TwigExtension::getTokenParsers in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Template/TwigExtension.php \Drupal\Core\Template\TwigExtension::getTokenParsers()

File

core/lib/Drupal/Core/Template/TwigExtension.php, line 194
Contains \Drupal\Core\Template\TwigExtension.

Class

TwigExtension
A class providing Drupal Twig extensions.

Namespace

Drupal\Core\Template

Code

public function getTokenParsers() {
  return array(
    new TwigTransTokenParser(),
  );
}