function Twig_TokenParserBrokerInterface::getTokenParser

Gets a TokenParser suitable for a tag.

Parameters

string $tag A tag name:

Return value

null|Twig_TokenParserInterface A Twig_TokenParserInterface or null if no suitable TokenParser was found

1 method overrides Twig_TokenParserBrokerInterface::getTokenParser()
Twig_TokenParserBroker::getTokenParser in drupal/core/vendor/twig/twig/lib/Twig/TokenParserBroker.php
Gets a suitable TokenParser for a tag.

File

drupal/core/vendor/twig/twig/lib/Twig/TokenParserBrokerInterface.php, line 30

Class

Twig_TokenParserBrokerInterface
Interface implemented by token parser brokers.

Code

function getTokenParser($tag);