Interface implemented by token parser brokers.
Token parser brokers allows to implement custom logic in the process of resolving a token parser for a given tag name.
author | Arnaud Le Blanc arnaud.lb@gmail.com |
---|---|
deprecated | since 1.12 (to be removed in 2.0) |
package | Default |
getParser(): \Twig_ParserInterface|null
getTokenParser(string $tag): \Twig\TokenParser\TokenParserInterface|null
string
A tag name
\Twig\TokenParser\TokenParserInterface|null
A Twig_TokenParserInterface or null if no suitable TokenParser was found
setParser(\Twig_ParserInterface $parser)