You are here

public function EntityDefinitionUpdateManager::uninstallFieldStorageDefinition in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php \Drupal\Core\Entity\EntityDefinitionUpdateManager::uninstallFieldStorageDefinition()

Uninstalls a field storage definition.

Parameters

\Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field storage definition.

Overrides EntityDefinitionUpdateManagerInterface::uninstallFieldStorageDefinition

File

core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php, line 198
Contains \Drupal\Core\Entity\EntityDefinitionUpdateManager.

Class

EntityDefinitionUpdateManager
Manages entity definition updates.

Namespace

Drupal\Core\Entity

Code

public function uninstallFieldStorageDefinition(FieldStorageDefinitionInterface $storage_definition) {
  $this->entityManager
    ->clearCachedDefinitions();
  $this->entityManager
    ->onFieldStorageDefinitionDelete($storage_definition);
}