public function LingotekConfigurationService::getEnabledEntityTypes in Lingotek Translation 8
Same name and namespace in other branches
- 8.2 src/LingotekConfigurationService.php \Drupal\lingotek\LingotekConfigurationService::getEnabledEntityTypes()
- 4.0.x src/LingotekConfigurationService.php \Drupal\lingotek\LingotekConfigurationService::getEnabledEntityTypes()
- 3.0.x src/LingotekConfigurationService.php \Drupal\lingotek\LingotekConfigurationService::getEnabledEntityTypes()
- 3.1.x src/LingotekConfigurationService.php \Drupal\lingotek\LingotekConfigurationService::getEnabledEntityTypes()
- 3.2.x src/LingotekConfigurationService.php \Drupal\lingotek\LingotekConfigurationService::getEnabledEntityTypes()
- 3.3.x src/LingotekConfigurationService.php \Drupal\lingotek\LingotekConfigurationService::getEnabledEntityTypes()
- 3.4.x src/LingotekConfigurationService.php \Drupal\lingotek\LingotekConfigurationService::getEnabledEntityTypes()
- 3.5.x src/LingotekConfigurationService.php \Drupal\lingotek\LingotekConfigurationService::getEnabledEntityTypes()
- 3.6.x src/LingotekConfigurationService.php \Drupal\lingotek\LingotekConfigurationService::getEnabledEntityTypes()
- 3.7.x src/LingotekConfigurationService.php \Drupal\lingotek\LingotekConfigurationService::getEnabledEntityTypes()
- 3.8.x src/LingotekConfigurationService.php \Drupal\lingotek\LingotekConfigurationService::getEnabledEntityTypes()
Gets the entity types that are enabled for Lingotek content translation.
Return value
\Drupal\Core\Entity\EntityTypeInterface[] An array of entity types that are enabled for Lingotek content translation.
Overrides LingotekConfigurationServiceInterface::getEnabledEntityTypes
File
- src/
LingotekConfigurationService.php, line 25 - Contains \Drupal\lingotek\LingotekConfigurationService.
Class
- LingotekConfigurationService
- Service for managing lingotek configuration.
Namespace
Drupal\lingotekCode
public function getEnabledEntityTypes() {
$enabled = array();
foreach (\Drupal::entityManager()
->getDefinitions() as $entity_type_id => $entity_type) {
if ($this
->isEnabled($entity_type_id)) {
$enabled[$entity_type_id] = $entity_type;
}
}
return $enabled;
}