public function Twig_TokenParserBroker::removeTokenParserBroker in Translation template extractor 6.3
Same name and namespace in other branches
- 7.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 85
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]);
}
}