function FieldDefinitionListenerInterface::onFieldDefinitionDelete

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Field/FieldDefinitionListenerInterface.php \Drupal\Core\Field\FieldDefinitionListenerInterface::onFieldDefinitionDelete()
  2. 10 core/lib/Drupal/Core/Field/FieldDefinitionListenerInterface.php \Drupal\Core\Field\FieldDefinitionListenerInterface::onFieldDefinitionDelete()
  3. 11.x core/lib/Drupal/Core/Field/FieldDefinitionListenerInterface.php \Drupal\Core\Field\FieldDefinitionListenerInterface::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.

1 method overrides FieldDefinitionListenerInterface::onFieldDefinitionDelete()
FieldDefinitionListener::onFieldDefinitionDelete in core/lib/Drupal/Core/Field/FieldDefinitionListener.php
Reacts to the deletion of a field.

File

core/lib/Drupal/Core/Field/FieldDefinitionListenerInterface.php, line 37

Class

FieldDefinitionListenerInterface
Defines an interface for reacting to field creation, deletion, and updates.

Namespace

Drupal\Core\Field

Code

public function onFieldDefinitionDelete(FieldDefinitionInterface $field_definition);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.