EntityDefinitionUpdateManager::uninstallEntityType

public EntityDefinitionUpdateManager::uninstallEntityType(EntityTypeInterface $entity_type)

Uninstalls an entity type definition.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

Overrides EntityDefinitionUpdateManagerInterface::uninstallEntityType

File

core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php, line 150

Class

EntityDefinitionUpdateManager
Manages entity definition updates.

Namespace

Drupal\Core\Entity

Code

public function uninstallEntityType(EntityTypeInterface $entity_type) {
  $this->entityManager->clearCachedDefinitions();
  $this->entityManager->onEntityTypeDelete($entity_type);
}
doc_Drupal
2016-10-29 09:05:01
Comments
Leave a Comment

Please login to continue.