function EntityTestDefinitionSubscriber::onFieldableEntityTypeUpdate

Overrides EntityTypeEventSubscriberTrait::onFieldableEntityTypeUpdate

File

core/modules/system/tests/modules/entity_test/src/EntityTestDefinitionSubscriber.php, line 136

Class

EntityTestDefinitionSubscriber
Test entity type and field storage definition event subscriber.

Namespace

Drupal\entity_test

Code

public function onFieldableEntityTypeUpdate(EntityTypeInterface $entity_type, EntityTypeInterface $original, array $field_storage_definitions, array $original_field_storage_definitions, ?array &$sandbox = NULL) {
  $this->storeEvent(EntityTypeEvents::UPDATE);
}

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