You are here

protected function LingotekDashboardController::getEnabledTypes in Lingotek Translation 3.2.x

Same name and namespace in other branches
  1. 8 src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getEnabledTypes()
  2. 8.2 src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getEnabledTypes()
  3. 4.0.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getEnabledTypes()
  4. 3.0.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getEnabledTypes()
  5. 3.1.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getEnabledTypes()
  6. 3.3.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getEnabledTypes()
  7. 3.4.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getEnabledTypes()
  8. 3.5.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getEnabledTypes()
  9. 3.6.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getEnabledTypes()
  10. 3.7.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getEnabledTypes()
  11. 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 319

Class

LingotekDashboardController
Returns responses for lingotek module setup routes.

Namespace

Drupal\lingotek\Controller

Code

protected function getEnabledTypes() {
  $types = $this->lingotek_configuration
    ->getEnabledEntityTypes();
  return empty($types) ? $types : array_keys($types);
}