BlockTokenParser

Extends\Twig\TokenParser\AbstractTokenParser

Marks a section of a template as being reusable.

{% block head %}

{% block title %}{% endblock %} - My Webpage

{% endblock %}

final
package

Default

Methods

decideBlockEnd

decideBlockEnd(\Twig\Token $token)

Arguments

$token

\Twig\Token

getTag

getTag()

parse

parse(\Twig\Token $token)

Arguments

$token

\Twig\Token

Sets the parser associated with this token parser.

setParser(\Twig\Parser $parser)
inherited

Arguments

$parser

\Twig\Parser

Properties

parser

parser :\Twig\Parser
inherited
var

Type(s)

\Twig\Parser