TransTokenParser

class TransTokenParser extends AbstractTokenParser

Token Parser for the 'trans' tag.

Methods

Node parse(Token $token)

Parses a token and returns a node.

decideTransFork($token)
string getTag()

Gets the tag name associated with this token parser.

Details

Node parse(Token $token)

Parses a token and returns a node.

Parameters

Token $token

Return Value

Node

Exceptions

SyntaxError

decideTransFork($token)

Parameters

$token

string getTag()

Gets the tag name associated with this token parser.

Return Value

string The tag name

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Bridge/Twig/TokenParser/TransTokenParser.html