Class

Symfony\Bridge\Twig\TokenParser\TransChoiceTokenParser

class TransChoiceTokenParser extends TransTokenParser

Token Parser for the 'transchoice' tag.

Methods

Twig_NodeInterface 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

at line 32
public Twig_NodeInterface parse(Twig_Token $token)

Parses a token and returns a node.

Parameters

Twig_Token $token A Twig_Token instance

Return Value

Twig_NodeInterface A Twig_NodeInterface instance

Exceptions

Twig_Error_Syntax

in TransTokenParser at line 75
public decideTransFork($token)

Parameters

$token

at line 85
public string getTag()

Gets the tag name associated with this token parser.

Return Value

string The tag name

at line 75
public decideTransChoiceFork($token)

Parameters

$token