public function Twig_TokenParserBroker::removeTokenParserBroker in Translation template extractor 7.3
Same name and namespace in other branches
- 6.3 vendor/Twig/TokenParserBroker.php \Twig_TokenParserBroker::removeTokenParserBroker()
Removes a TokenParserBroker.
Parameters
Twig_TokenParserBroker $broker A Twig_TokenParserBroker instance:
File
- vendor/
Twig/ TokenParserBroker.php, line 91
Class
- Twig_TokenParserBroker
- Default implementation of a token parser broker.
Code
public function removeTokenParserBroker(Twig_TokenParserBroker $broker) {
if (false !== ($pos = array_search($broker, $this->brokers))) {
unset($this->brokers[$pos]);
}
}