TransChoiceTokenParser

class TransChoiceTokenParser extends TransTokenParser

Token Parser for the 'transchoice' tag.

Methods

Twig_Node parse(Twig_Token $token)

Parses a token and returns a node.

decideTransFork($token) from TransTokenParser
string getTag()

Gets the tag name associated with this token parser.

decideTransChoiceFork($token)

Details

Twig_Node parse(Twig_Token $token)

Parses a token and returns a node.

Parameters

Twig_Token $token A Twig_Token instance

Return Value

Twig_Node A Twig_Node instance

Exceptions

Twig_Error_Syntax

decideTransFork($token)

Parameters

$token

string getTag()

Gets the tag name associated with this token parser.

Return Value

string The tag name

decideTransChoiceFork($token)

Parameters

$token
doc_Symfony
2016-10-28 06:35:00
Comments
Leave a Comment

Please login to continue.