You are here

public function EntityTypeListenerInterface::onEntityTypeCreate in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityTypeListenerInterface.php \Drupal\Core\Entity\EntityTypeListenerInterface::onEntityTypeCreate()

Reacts to the creation of the entity type.

Parameters

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

3 methods override EntityTypeListenerInterface::onEntityTypeCreate()
EntityTypeListener::onEntityTypeCreate in core/lib/Drupal/Core/Entity/EntityTypeListener.php
Reacts to the creation of the entity type.
SqlContentEntityStorage::onEntityTypeCreate in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php
Reacts to the creation of the entity type.
SqlContentEntityStorageSchema::onEntityTypeCreate in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
Reacts to the creation of the entity type.

File

core/lib/Drupal/Core/Entity/EntityTypeListenerInterface.php, line 16

Class

EntityTypeListenerInterface
Defines an interface for reacting to entity type creation, deletion, and updates.

Namespace

Drupal\Core\Entity

Code

public function onEntityTypeCreate(EntityTypeInterface $entity_type);