ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Defines a macro. More...
Public Member Functions | |
parse (Twig_Token $token) | |
Parses a token and returns a node. More... | |
decideBlockEnd (Twig_Token $token) | |
getTag () | |
Gets the tag name associated with this token parser. More... | |
![]() | |
setParser (Twig_Parser $parser) | |
Sets the parser associated with this token parser. More... | |
setParser (Twig_Parser $parser) | |
Sets the parser associated with this token parser. More... | |
parse (Twig_Token $token) | |
Parses a token and returns a node. More... | |
getTag () | |
Gets the tag name associated with this token parser. More... | |
Additional Inherited Members | |
![]() | |
$parser | |
Defines a macro.
{% macro input(name, value, type, size) %} <input type="{{ type|default('text') }}" name="{{ name }}" value="{{ value|e }}" size="{{ size|default(20) }}" > {% endmacro %}
@final
Twig_TokenParser_Macro::decideBlockEnd | ( | Twig_Token | $token | ) |
Twig_TokenParser_Macro::getTag | ( | ) |
Gets the tag name associated with this token parser.
Implements Twig_TokenParserInterface.
Definition at line 54 of file Macro.php.
Referenced by parse().
Twig_TokenParser_Macro::parse | ( | Twig_Token | $token | ) |
Parses a token and returns a node.
Twig_Error_Syntax |
Implements Twig_TokenParserInterface.
Definition at line 25 of file Macro.php.
References $name, GuzzleHttp\Psr7\$stream, PHPMailer\PHPMailer\$token, Twig_Token\BLOCK_END_TYPE, getTag(), and Twig_Token\NAME_TYPE.