function FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionUpdate
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Field/FieldStorageDefinitionListenerInterface.php \Drupal\Core\Field\FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionUpdate()
- 10 core/lib/Drupal/Core/Field/FieldStorageDefinitionListenerInterface.php \Drupal\Core\Field\FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionUpdate()
- 11.x core/lib/Drupal/Core/Field/FieldStorageDefinitionListenerInterface.php \Drupal\Core\Field\FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionUpdate()
Reacts to the update of a field storage definition.
Parameters
\Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field being updated.
\Drupal\Core\Field\FieldStorageDefinitionInterface $original: The original storage definition; i.e., the definition before the update.
Throws
\Drupal\Core\Entity\Exception\FieldStorageDefinitionUpdateForbiddenException Thrown when the update to the field is forbidden.
2 methods override FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionUpdate()
- FieldStorageDefinitionListener::onFieldStorageDefinitionUpdate in core/
lib/ Drupal/ Core/ Field/ FieldStorageDefinitionListener.php - Reacts to the update of a field storage definition.
- SqlContentEntityStorageSchema::onFieldStorageDefinitionUpdate in core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorageSchema.php - Reacts to the update of a field storage definition.
File
-
core/
lib/ Drupal/ Core/ Field/ FieldStorageDefinitionListenerInterface.php, line 29
Class
- FieldStorageDefinitionListenerInterface
- Defines an interface for reacting to field storage definition creation, deletion, and updates.
Namespace
Drupal\Core\FieldCode
public function onFieldStorageDefinitionUpdate(FieldStorageDefinitionInterface $storage_definition, FieldStorageDefinitionInterface $original);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.