class TransChoiceTokenParser extends TransTokenParser

deprecated since Symfony 4.2, use the "trans" tag with a "%count%" parameter instead

Token Parser for the 'transchoice' tag.

Methods

Node
parse(Token $token)

Parses a token and returns a node.

decideTransFork($token)

No description

string
getTag()

Gets the tag name associated with this token parser.

decideTransChoiceFork($token)

No description

Details

at line 38
Node parse(Token $token)

Parses a token and returns a node.

Parameters

Token $token

Return Value

Node

Exceptions

SyntaxError

in TransTokenParser at line 87
decideTransFork($token)

Parameters

$token

at line 93
string getTag()

Gets the tag name associated with this token parser.

Return Value

string The tag name

at line 83
decideTransChoiceFork($token)

Parameters

$token