public function MultiversionManager::getEnabledEntityTypes in Multiversion 8
Same name and namespace in other branches
- 8.2 src/MultiversionManager.php \Drupal\multiversion\MultiversionManager::getEnabledEntityTypes()
Return value
\Drupal\Core\Entity\EntityTypeInterface[]
Overrides MultiversionManagerInterface::getEnabledEntityTypes
1 call to MultiversionManager::getEnabledEntityTypes()
File
- src/
MultiversionManager.php, line 250
Class
Namespace
Drupal\multiversionCode
public function getEnabledEntityTypes() {
$entity_types = [];
foreach ($this
->getSupportedEntityTypes() as $entity_type_id => $entity_type) {
if ($this
->isEnabledEntityType($entity_type)) {
$entity_types[$entity_type_id] = $entity_type;
}
}
return $entity_types;
}