ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Marks a section of a template as being reusable. 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... | |
Public Member Functions inherited from Twig_TokenParser | |
setParser (Twig_Parser $parser) | |
Sets the parser associated with this token parser. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Twig_TokenParser | |
$parser | |
Marks a section of a template as being reusable.
{% block head %} <link rel="stylesheet" href="style.css"> <title>{% block title %}{% endblock %} - My Webpage</title> {% endblock %}
Twig_TokenParser_Block::decideBlockEnd | ( | Twig_Token | $token | ) |
Definition at line 62 of file Block.php.
References Twig_Token\test().
Twig_TokenParser_Block::getTag | ( | ) |
Gets the tag name associated with this token parser.
Implements Twig_TokenParserInterface.
Definition at line 67 of file Block.php.
Referenced by parse().
Twig_TokenParser_Block::parse | ( | Twig_Token | $token | ) |
Parses a token and returns a node.
Twig_Error_Syntax |
Implements Twig_TokenParserInterface.
Definition at line 27 of file Block.php.
References $name, GuzzleHttp\Psr7\$stream, array, Twig_Token\BLOCK_END_TYPE, Twig_Token\getLine(), getTag(), Twig_Token\getValue(), and Twig_Token\NAME_TYPE.