protected function LingotekDashboardController::getEnabledTypes in Lingotek Translation 3.4.x
Same name and namespace in other branches
- 8 src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getEnabledTypes()
- 8.2 src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getEnabledTypes()
- 4.0.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getEnabledTypes()
- 3.0.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getEnabledTypes()
- 3.1.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getEnabledTypes()
- 3.2.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getEnabledTypes()
- 3.3.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getEnabledTypes()
- 3.5.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getEnabledTypes()
- 3.6.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getEnabledTypes()
- 3.7.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getEnabledTypes()
- 3.8.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getEnabledTypes()
Gets the entity type ids of entities to be translated with Lingotek.
Return value
array The entity type names of content entities enabled.
3 calls to LingotekDashboardController::getEnabledTypes()
- LingotekDashboardController::getLanguageReport in src/
Controller/ LingotekDashboardController.php - LingotekDashboardController::getSourceTypeCounts in src/
Controller/ LingotekDashboardController.php - LingotekDashboardController::getTargetTypeCounts in src/
Controller/ LingotekDashboardController.php
File
- src/
Controller/ LingotekDashboardController.php, line 339
Class
- LingotekDashboardController
- Returns responses for lingotek module setup routes.
Namespace
Drupal\lingotek\ControllerCode
protected function getEnabledTypes() {
$types = $this->lingotek_configuration
->getEnabledEntityTypes();
return empty($types) ? $types : array_keys($types);
}