You are here

public function TranslationDataCollector::lateCollect in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/translation/DataCollector/TranslationDataCollector.php \Symfony\Component\Translation\DataCollector\TranslationDataCollector::lateCollect()

Collects data as late as possible.

Overrides LateDataCollectorInterface::lateCollect

File

vendor/symfony/translation/DataCollector/TranslationDataCollector.php, line 41

Class

TranslationDataCollector
@author Abdellatif Ait boudad <a.aitboudad@gmail.com>

Namespace

Symfony\Component\Translation\DataCollector

Code

public function lateCollect() {
  $messages = $this
    ->sanitizeCollectedMessages($this->translator
    ->getCollectedMessages());
  $this->data = $this
    ->computeCount($messages);
  $this->data['messages'] = $messages;
}