public function EntityDefinitionUpdateManager::getEntityTypes in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php \Drupal\Core\Entity\EntityDefinitionUpdateManager::getEntityTypes()
Returns all the entity type definitions, ready to be manipulated.
When needing to apply updates to existing entity type definitions, this method should always be used to retrieve all the definitions ready to be manipulated.
Return value
\Drupal\Core\Entity\EntityTypeInterface[] The last installed entity type definitions, keyed by the entity type ID.
Overrides EntityDefinitionUpdateManagerInterface::getEntityTypes
File
- core/
lib/ Drupal/ Core/ Entity/ EntityDefinitionUpdateManager.php, line 141
Class
- EntityDefinitionUpdateManager
- Manages entity definition updates.
Namespace
Drupal\Core\EntityCode
public function getEntityTypes() {
return $this->entityLastInstalledSchemaRepository
->getLastInstalledDefinitions();
}