Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php \Drupal\Core\Entity\EntityDefinitionUpdateManager::updateEntityType()
- 9 core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php \Drupal\Core\Entity\EntityDefinitionUpdateManager::updateEntityType()
File
- core/
lib/ Drupal/ Core/ Entity/ EntityDefinitionUpdateManager.php, line 156
Class
- EntityDefinitionUpdateManager
- Manages entity definition updates.
Namespace
Drupal\Core\EntityCode
public function updateEntityType(EntityTypeInterface $entity_type) {
$original = $this
->getEntityType($entity_type
->id());
$this
->clearCachedDefinitions();
$this->entityTypeListener
->onEntityTypeUpdate($entity_type, $original);
}