You are here

public function Twig_Extension_Core::getTokenParsers in Translation template extractor 6.3

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

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

Return value

Twig_TokenParser[] An array of Twig_TokenParser instances

Overrides Twig_Extension::getTokenParsers

File

vendor/Twig/Extension/Core.php, line 122

Class

Twig_Extension_Core

Code

public function getTokenParsers() {
  return array(
    new Twig_TokenParser_For(),
    new Twig_TokenParser_If(),
    new Twig_TokenParser_Extends(),
    new Twig_TokenParser_Include(),
    new Twig_TokenParser_Block(),
    new Twig_TokenParser_Use(),
    new Twig_TokenParser_Filter(),
    new Twig_TokenParser_Macro(),
    new Twig_TokenParser_Import(),
    new Twig_TokenParser_From(),
    new Twig_TokenParser_Set(),
    new Twig_TokenParser_Spaceless(),
    new Twig_TokenParser_Flush(),
    new Twig_TokenParser_Do(),
    new Twig_TokenParser_Embed(),
  );
}