W3cubDocs

/Symfony 2.7

Symfony\Bundle\TwigBundle\TokenParser\RenderTokenParser

class RenderTokenParser extends Twig_TokenParser

Token Parser for the render tag.

Methods

Twig_NodeInterface parse(Twig_Token $token)

Parses a token and returns a node.

string getTag()

Gets the tag name associated with this token parser.

Details

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

public string getTag()

Gets the tag name associated with this token parser.

Return Value

string The tag name

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Bundle/TwigBundle/TokenParser/RenderTokenParser.html