function Twig_TokenParserInterface::parse

Parses a token and returns a node.

Parameters

Twig_Token $token A Twig_Token instance:

Return value

Twig_NodeInterface A Twig_NodeInterface instance

18 methods override Twig_TokenParserInterface::parse()
TestTokenParser::parse in drupal/core/vendor/twig/twig/test/Twig/Tests/ParserTest.php
Parses a token and returns a node.
TestTokenParser_☃::parse in drupal/core/vendor/twig/twig/test/Twig/Tests/integrationTest.php
Parses a token and returns a node.
Twig_TokenParser_AutoEscape::parse in drupal/core/vendor/twig/twig/lib/Twig/TokenParser/AutoEscape.php
Parses a token and returns a node.
Twig_TokenParser_Block::parse in drupal/core/vendor/twig/twig/lib/Twig/TokenParser/Block.php
Parses a token and returns a node.
Twig_TokenParser_Do::parse in drupal/core/vendor/twig/twig/lib/Twig/TokenParser/Do.php
Parses a token and returns a node.

... See full list

File

drupal/core/vendor/twig/twig/lib/Twig/TokenParserInterface.php, line 34

Class

Twig_TokenParserInterface
Interface implemented by token parsers.

Code

function parse(Twig_Token $token);