Class Twig_TokenParser_Set

InheritanceTwig_TokenParser_Set » Twig_TokenParser
ImplementsTwig_TokenParserInterface

Defines a variable.

 {% set foo = 'foo' %}

 {% set foo = [1, 2] %}

 {% set foo = {'foo': 'bar'} %}

 {% set foo = 'foo' ~ 'bar' %}

 {% set foo, bar = 'foo', 'bar' %}

 {% set foo %}Some content{% endset %}

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$parser Twig_Parser Twig_TokenParser

Public Methods

Hide inherited methods

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

Method Details

decideBlockEnd() public method

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

public void getTag ( )
parse() public method

public void parse ( Twig_Token $token )
$token