You are here

public function EntityTestDefinitionSubscriber::onFieldStorageDefinitionCreate in Zircon Profile 8

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

Reacts to the creation of a field storage definition.

Parameters

\Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The definition being created.

Overrides FieldStorageDefinitionEventSubscriberTrait::onFieldStorageDefinitionCreate

File

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

Class

EntityTestDefinitionSubscriber
Test entity type and field storage definition event subscriber.

Namespace

Drupal\entity_test

Code

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