EntityDefinitionUpdateManager::uninstallFieldStorageDefinition

public EntityDefinitionUpdateManager::uninstallFieldStorageDefinition(FieldStorageDefinitionInterface $storage_definition)

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 192

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);
}
doc_Drupal
2016-10-29 09:05:01
Comments
Leave a Comment

Please login to continue.