Class Twig_TokenParser_Block

InheritanceTwig_TokenParser_Block » Twig_TokenParser

Marks a section of a template as being reusable.

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

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$parser Twig_Parser Twig_TokenParser

Public Methods

Hide inherited methods

MethodDescriptionDefined By
decideBlockEnd() Twig_TokenParser_Block
getTag() Twig_TokenParser_Block
parse() Twig_TokenParser_Block
setParser() Sets the parser associated with this token parser. Twig_TokenParser

Method Details

decideBlockEnd() public method

public void decideBlockEnd ( Twig_Token $token )
getTag() public method

public void getTag ( )
parse() public method

public void parse ( Twig_Token $token )