public function EntityDefinitionUpdateManager::updateEntityType in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php \Drupal\Core\Entity\EntityDefinitionUpdateManager::updateEntityType()
Applies any change performed to the passed entity type definition.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
Overrides EntityDefinitionUpdateManagerInterface::updateEntityType
File
- core/
lib/ Drupal/ Core/ Entity/ EntityDefinitionUpdateManager.php, line 147 - Contains \Drupal\Core\Entity\EntityDefinitionUpdateManager.
Class
- EntityDefinitionUpdateManager
- Manages entity definition updates.
Namespace
Drupal\Core\EntityCode
public function updateEntityType(EntityTypeInterface $entity_type) {
$original = $this
->getEntityType($entity_type
->id());
$this->entityManager
->clearCachedDefinitions();
$this->entityManager
->onEntityTypeUpdate($entity_type, $original);
}