public function MultiversionManager::getSupportedEntityTypes in Multiversion 8
Same name and namespace in other branches
- 8.2 src/MultiversionManager.php \Drupal\multiversion\MultiversionManager::getSupportedEntityTypes()
Return value
\Drupal\Core\Entity\EntityTypeInterface[]
Overrides MultiversionManagerInterface::getSupportedEntityTypes
2 calls to MultiversionManager::getSupportedEntityTypes()
- MultiversionManager::enableEntityTypes in src/
MultiversionManager.php - @todo Ensure nothing breaks if the migration is run twice.
- MultiversionManager::getEnabledEntityTypes in src/
MultiversionManager.php
File
- src/
MultiversionManager.php, line 199
Class
Namespace
Drupal\multiversionCode
public function getSupportedEntityTypes() {
$entity_types = [];
foreach ($this->entityTypeManager
->getDefinitions() as $entity_type_id => $entity_type) {
if ($this
->isSupportedEntityType($entity_type)) {
$entity_types[$entity_type
->id()] = $entity_type;
}
}
return $entity_types;
}