function FieldDefinitionListener::onFieldDefinitionUpdate
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Field/FieldDefinitionListener.php \Drupal\Core\Field\FieldDefinitionListener::onFieldDefinitionUpdate()
- 10 core/lib/Drupal/Core/Field/FieldDefinitionListener.php \Drupal\Core\Field\FieldDefinitionListener::onFieldDefinitionUpdate()
- 11.x core/lib/Drupal/Core/Field/FieldDefinitionListener.php \Drupal\Core\Field\FieldDefinitionListener::onFieldDefinitionUpdate()
Overrides FieldDefinitionListenerInterface::onFieldDefinitionUpdate
File
-
core/
lib/ Drupal/ Core/ Field/ FieldDefinitionListener.php, line 108
Class
- FieldDefinitionListener
- Reacts to field definition CRUD on behalf of the Entity system.
Namespace
Drupal\Core\FieldCode
public function onFieldDefinitionUpdate(FieldDefinitionInterface $field_definition, FieldDefinitionInterface $original) {
// Notify the storage about the updated field.
$this->entityTypeManager
->getStorage($field_definition->getTargetEntityTypeId())
->onFieldDefinitionUpdate($field_definition, $original);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.