function EntityDefinitionUpdateManager::getEntityType
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php \Drupal\Core\Entity\EntityDefinitionUpdateManager::getEntityType()
- 8.9.x core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php \Drupal\Core\Entity\EntityDefinitionUpdateManager::getEntityType()
- 10 core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php \Drupal\Core\Entity\EntityDefinitionUpdateManager::getEntityType()
Overrides EntityDefinitionUpdateManagerInterface::getEntityType
2 calls to EntityDefinitionUpdateManager::getEntityType()
- EntityDefinitionUpdateManager::updateEntityType in core/
lib/ Drupal/ Core/ Entity/ EntityDefinitionUpdateManager.php - Applies any change performed to the passed entity type definition.
- EntityDefinitionUpdateManager::updateFieldableEntityType in core/
lib/ Drupal/ Core/ Entity/ EntityDefinitionUpdateManager.php - Applies any change performed to a fieldable entity type definition.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityDefinitionUpdateManager.php, line 133
Class
- EntityDefinitionUpdateManager
- Manages entity definition updates.
Namespace
Drupal\Core\EntityCode
public function getEntityType($entity_type_id) {
$entity_type = $this->entityLastInstalledSchemaRepository
->getLastInstalledDefinition($entity_type_id);
return $entity_type ? clone $entity_type : NULL;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.