You are here

public function EntityDefinitionUpdateManager::uninstallFieldStorageDefinition in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php \Drupal\Core\Entity\EntityDefinitionUpdateManager::uninstallFieldStorageDefinition()
  2. 10 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 287

Class

EntityDefinitionUpdateManager
Manages entity definition updates.

Namespace

Drupal\Core\Entity

Code

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