function TranslationsDataCollector::__construct

Parameters

\Drupal\Core\StringTranslation\TranslationInterface $translation:

\Drupal\Core\Routing\UrlGeneratorInterface $urlGenerator:

File

webprofiler/src/DataCollector/TranslationsDataCollector.php, line 35

Class

TranslationsDataCollector
Class TranslationsDataCollector

Namespace

Drupal\webprofiler\DataCollector

Code

public function __construct(TranslationInterface $translation, UrlGeneratorInterface $urlGenerator) {
    $this->translation = $translation;
    $this->urlGenerator = $urlGenerator;
    $this->data['translations']['translated'] = [];
    $this->data['translations']['untranslated'] = [];
}