You are here

public function ChainExtractor::addExtractor in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/translation/Extractor/ChainExtractor.php \Symfony\Component\Translation\Extractor\ChainExtractor::addExtractor()

Adds a loader to the translation extractor.

Parameters

string $format The format of the loader:

ExtractorInterface $extractor The loader:

File

vendor/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;
}