You are here

public function Twig_TokenParserBroker::addTokenParserBroker in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/TokenParserBroker.php \Twig_TokenParserBroker::addTokenParserBroker()

Adds a TokenParserBroker.

Parameters

Twig_TokenParserBroker $broker A Twig_TokenParserBroker instance:

File

vendor/twig/twig/lib/Twig/TokenParserBroker.php, line 81

Class

Twig_TokenParserBroker
Default implementation of a token parser broker.

Code

public function addTokenParserBroker(Twig_TokenParserBroker $broker) {
  $this->brokers[] = $broker;
}