You are here

public function ContentEntityStorageBase::onFieldDefinitionDelete in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php \Drupal\Core\Entity\ContentEntityStorageBase::onFieldDefinitionDelete()
  2. 10 core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php \Drupal\Core\Entity\ContentEntityStorageBase::onFieldDefinitionDelete()

Reacts to the deletion of a field.

Stored values should not be wiped at once, but marked as 'deleted' so that they can go through a proper purge process later on.

Parameters

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition being deleted.

Overrides FieldDefinitionListenerInterface::onFieldDefinitionDelete

1 method overrides ContentEntityStorageBase::onFieldDefinitionDelete()
SqlContentEntityStorage::onFieldDefinitionDelete in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php
Reacts to the deletion of a field.

File

core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php, line 468

Class

ContentEntityStorageBase
Base class for content entity storage handlers.

Namespace

Drupal\Core\Entity

Code

public function onFieldDefinitionDelete(FieldDefinitionInterface $field_definition) {
}