You are here

public function TranslationsDataCollector::getTranslatedCount in Devel 8.2

Same name and namespace in other branches
  1. 8.3 webprofiler/src/DataCollector/TranslationsDataCollector.php \Drupal\webprofiler\DataCollector\TranslationsDataCollector::getTranslatedCount()
  2. 8 webprofiler/src/DataCollector/TranslationsDataCollector.php \Drupal\webprofiler\DataCollector\TranslationsDataCollector::getTranslatedCount()
  3. 4.x webprofiler/src/DataCollector/TranslationsDataCollector.php \Drupal\webprofiler\DataCollector\TranslationsDataCollector::getTranslatedCount()

Return value

int

1 call to TranslationsDataCollector::getTranslatedCount()
TranslationsDataCollector::getPanelSummary in webprofiler/src/DataCollector/TranslationsDataCollector.php
Returns the string used in vertical tab summary.

File

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

Class

TranslationsDataCollector
Class TranslationsDataCollector

Namespace

Drupal\webprofiler\DataCollector

Code

public function getTranslatedCount() {
  return count($this->data['translations']['translated']);
}