You are here

public function EntityTypeListenerInterface::onEntityTypeCreate in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityTypeListenerInterface.php \Drupal\Core\Entity\EntityTypeListenerInterface::onEntityTypeCreate()
  2. 10 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.

4 methods override EntityTypeListenerInterface::onEntityTypeCreate()
EntityManager::onEntityTypeCreate in core/lib/Drupal/Core/Entity/EntityManager.php
Reacts to the creation of the entity type.
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);