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.
Expanded class hierarchy of TwigFunctionTokenParser
core\vendor\twig\twig\lib\Twig\TokenParser.php
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TwigFunctionTokenParser:: |
protected | property | The name of tag. Can be 'hide' or 'show'. | |
TwigFunctionTokenParser:: |
public | function | Gets the tag name associated with this token parser. | |
TwigFunctionTokenParser:: |
public | function | Parses a token and returns a node. | |
TwigFunctionTokenParser:: |
public | function | Constructor for TwigFunctionTokenParser. |