You are here

public function ChainExtractor::addExtractor in Plug 7

Adds a loader to the translation extractor.

Parameters

string $format The format of the loader:

ExtractorInterface $extractor The loader:

File

lib/Symfony/translation/Extractor/ChainExtractor.php, line 36

Class

ChainExtractor
ChainExtractor extracts translation messages from template files.

Namespace

Symfony\Component\Translation\Extractor

Code

public function addExtractor($format, ExtractorInterface $extractor) {
  $this->extractors[$format] = $extractor;
}