You are here

public function EntityTestDefinitionSubscriber::onFieldStorageDefinitionDelete in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/entity_test/src/EntityTestDefinitionSubscriber.php \Drupal\entity_test\EntityTestDefinitionSubscriber::onFieldStorageDefinitionDelete()

Reacts to the deletion of a field storage definition.

Parameters

\Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field being deleted.

Overrides FieldStorageDefinitionEventSubscriberTrait::onFieldStorageDefinitionDelete

File

core/modules/system/tests/modules/entity_test/src/EntityTestDefinitionSubscriber.php, line 95
Contains \Drupal\entity_test\EntityTestDefinitionSubscriber.

Class

EntityTestDefinitionSubscriber
Test entity type and field storage definition event subscriber.

Namespace

Drupal\entity_test

Code

public function onFieldStorageDefinitionDelete(FieldStorageDefinitionInterface $storage_definition) {
  $this
    ->storeEvent(FieldStorageDefinitionEvents::DELETE);
}