Class

Symfony\Bridge\Twig\TokenParser\TransTokenParser

class TransTokenParser extends Twig_TokenParser

Token Parser for the 'trans' tag.

Methods

Twig_NodeInterface 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

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

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