protected function LingotekDashboardController::getSourceTypeCounts in Lingotek Translation 4.0.x
Same name and namespace in other branches
- 8 src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getSourceTypeCounts()
- 8.2 src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getSourceTypeCounts()
- 3.0.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getSourceTypeCounts()
- 3.1.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getSourceTypeCounts()
- 3.2.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getSourceTypeCounts()
- 3.3.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getSourceTypeCounts()
- 3.4.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getSourceTypeCounts()
- 3.5.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getSourceTypeCounts()
- 3.6.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getSourceTypeCounts()
- 3.7.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getSourceTypeCounts()
- 3.8.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getSourceTypeCounts()
1 call to LingotekDashboardController::getSourceTypeCounts()
File
- src/
Controller/ LingotekDashboardController.php, line 351
Class
- LingotekDashboardController
- Returns responses for lingotek module setup routes.
Namespace
Drupal\lingotek\ControllerCode
protected function getSourceTypeCounts($langcode, $types = NULL) {
$types = is_null($types) ? $this
->getEnabledTypes() : $types;
$result = [];
foreach ($types as $type) {
$result[$type] = $this
->getSourceTypeCount($langcode, $type);
}
return $result;
}