You are here

public function EntityTestDefinitionSubscriber::onEntityTypeCreate 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::onEntityTypeCreate()

Reacts to the creation of the entity type.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type being created.

Overrides EntityTypeEventSubscriberTrait::onEntityTypeCreate

File

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

Class

EntityTestDefinitionSubscriber
Test entity type and field storage definition event subscriber.

Namespace

Drupal\entity_test

Code

public function onEntityTypeCreate(EntityTypeInterface $entity_type) {
  $this
    ->storeEvent(EntityTypeEvents::CREATE);
}