class defineparser extends AbstractTokenParser

Methods

Node
parse(Token $token)

Parses a token and returns a node.

decideBlockEnd(Token $token)

No description

string
getTag()

Gets the tag name associated with this token parser.

Details

at line 28
Node parse(Token $token)

Parses a token and returns a node.

Parameters

Token $token

A Twig\Token instance

Return Value

Node

A Twig\Node instance

Exceptions

SyntaxError
definenode

at line 62
decideBlockEnd(Token $token)

No description

Parameters

Token $token

at line 72
string getTag()

Gets the tag name associated with this token parser.

Return Value

string

The tag name