You are here

public function FieldDefinitionListenerInterface::onFieldDefinitionUpdate in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Field/FieldDefinitionListenerInterface.php \Drupal\Core\Field\FieldDefinitionListenerInterface::onFieldDefinitionUpdate()
  2. 10 core/lib/Drupal/Core/Field/FieldDefinitionListenerInterface.php \Drupal\Core\Field\FieldDefinitionListenerInterface::onFieldDefinitionUpdate()

Reacts to the update of a field.

Parameters

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

\Drupal\Core\Field\FieldDefinitionInterface $original: The original field definition; i.e., the definition before the update.

3 methods override FieldDefinitionListenerInterface::onFieldDefinitionUpdate()
ContentEntityStorageBase::onFieldDefinitionUpdate in core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php
Reacts to the update of a field.
EntityManager::onFieldDefinitionUpdate in core/lib/Drupal/Core/Entity/EntityManager.php
FieldDefinitionListener::onFieldDefinitionUpdate in core/lib/Drupal/Core/Field/FieldDefinitionListener.php
Reacts to the update of a field.

File

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

Class

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

Namespace

Drupal\Core\Field

Code

public function onFieldDefinitionUpdate(FieldDefinitionInterface $field_definition, FieldDefinitionInterface $original);