You are here

public function Twig_Extension_Sandbox::getTokenParsers in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/Extension/Sandbox.php \Twig_Extension_Sandbox::getTokenParsers()

Returns the token parser instances to add to the existing list.

Return value

array An array of Twig_TokenParserInterface or Twig_TokenParserBrokerInterface instances

Overrides Twig_Extension::getTokenParsers

File

vendor/Twig/Extension/Sandbox.php, line 28

Class

Twig_Extension_Sandbox

Code

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