public function Twig_TokenParserBroker::removeTokenParserBroker in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/lib/Twig/TokenParserBroker.php \Twig_TokenParserBroker::removeTokenParserBroker()
Removes a TokenParserBroker.
Parameters
Twig_TokenParserBroker $broker A Twig_TokenParserBroker instance:
File
- vendor/
twig/ twig/ lib/ 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]);
}
}