You are here

public function Twig_TokenParserBroker::addTokenParserBroker in Translation template extractor 6.3

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

Adds a TokenParserBroker.

Parameters

Twig_TokenParserBroker $broker A Twig_TokenParserBroker instance:

File

vendor/Twig/TokenParserBroker.php, line 75

Class

Twig_TokenParserBroker
Default implementation of a token parser broker.

Code

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