public function MultiversionManager::getSupportedEntityTypes in Multiversion 8.2
Same name and namespace in other branches
- 8 src/MultiversionManager.php \Drupal\multiversion\MultiversionManager::getSupportedEntityTypes()
Return value
\Drupal\Core\Entity\EntityTypeInterface[]
Overrides MultiversionManagerInterface::getSupportedEntityTypes
2 calls to MultiversionManager::getSupportedEntityTypes()
File
- src/
MultiversionManager.php, line 168
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;
}