protected function EntityDefinitionUpdateManager::doEntityUpdate
protected EntityDefinitionUpdateManager::doEntityUpdate($op, $entity_type_id)
Performs an entity type definition update.
Parameters
string $op: The operation to perform, either static::DEFINITION_CREATED or static::DEFINITION_UPDATED.
string $entity_type_id: The entity type ID.
File
- core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php, line 206
Class
- EntityDefinitionUpdateManager
- Manages entity definition updates.
Namespace
Drupal\Core\EntityCode
protected function doEntityUpdate($op, $entity_type_id) { $entity_type = $this->entityManager->getDefinition($entity_type_id); switch ($op) { case static::DEFINITION_CREATED: $this->entityManager->onEntityTypeCreate($entity_type); break; case static::DEFINITION_UPDATED: $original = $this->entityManager->getLastInstalledDefinition($entity_type_id); $this->entityManager->onEntityTypeUpdate($entity_type, $original); break; } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityDefinitionUpdateManager.php/function/EntityDefinitionUpdateManager::doEntityUpdate/8.1.x