class TransTokenParser extends Twig_TokenParser

Token Parser for the 'trans' tag.

Methods

Twig_Node
parse(Twig_Token $token)

Parses a token and returns a node.

decideTransFork($token)

No description

string
getTag()

Gets the tag name associated with this token parser.

Details

at line line 32
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

at line line 75
decideTransFork($token)

Parameters

$token

at line line 85
string getTag()

Gets the tag name associated with this token parser.

Return Value

string The tag name