function EntityTypeListenerInterface::onEntityTypeCreate
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityTypeListenerInterface.php \Drupal\Core\Entity\EntityTypeListenerInterface::onEntityTypeCreate()
- 8.9.x core/lib/Drupal/Core/Entity/EntityTypeListenerInterface.php \Drupal\Core\Entity\EntityTypeListenerInterface::onEntityTypeCreate()
- 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.
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\EntityCode
public function onEntityTypeCreate(EntityTypeInterface $entity_type);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.