function FieldDefinitionListenerInterface::onFieldDefinitionUpdate

Same name 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()
  3. 11.x 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.

2 methods override FieldDefinitionListenerInterface::onFieldDefinitionUpdate()
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);

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