You are here

public function EntityDefinitionUpdateManager::uninstallFieldStorageDefinition in Drupal 9

Same name and namespace in other branches
  1. 8 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 239

Class

EntityDefinitionUpdateManager
Manages entity definition updates.

Namespace

Drupal\Core\Entity

Code

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