TransTokenParser

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)
string getTag()

Gets the tag name associated with this token parser.

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
doc_Symfony
2016-10-28 06:35:32
Comments
Leave a Comment

Please login to continue.