class TwigFunctionTokenParser

A class that defines the Twig token parser for Drupal.

The token parser converts a token stream created from template source code into an Abstract Syntax Tree (AST). The AST will later be compiled into PHP code usable for runtime execution of the template.

Hierarchy

Expanded class hierarchy of TwigFunctionTokenParser

See also

core\vendor\twig\twig\lib\Twig\TokenParser.php

File

drupal/core/lib/Drupal/Core/Template/TwigFunctionTokenParser.php, line 19
Definition of Drupal\Core\Template\TwigFunctionTokenParser.

Namespace

Drupal\Core\Template
View source

Members

Namesort descending Modifiers Type Description Overrides
TwigFunctionTokenParser::$tag protected property The name of tag. Can be 'hide' or 'show'.
TwigFunctionTokenParser::getTag public function Gets the tag name associated with this token parser.
TwigFunctionTokenParser::parse public function Parses a token and returns a node.
TwigFunctionTokenParser::__construct public function Constructor for TwigFunctionTokenParser.