EntityTypeEvents::CREATE
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityTypeEvents.php \Drupal\Core\Entity\EntityTypeEvents::CREATE
- 8.9.x core/lib/Drupal/Core/Entity/EntityTypeEvents.php \Drupal\Core\Entity\EntityTypeEvents::CREATE
- 10 core/lib/Drupal/Core/Entity/EntityTypeEvents.php \Drupal\Core\Entity\EntityTypeEvents::CREATE
The name of the event triggered when a new entity type is created.
This event allows modules to react to a new entity type being created. The event listener method receives a \Drupal\Core\Entity\EntityTypeEvent instance.
See also
\Drupal\Core\Entity\EntityTypeEvent
\Drupal\Core\Entity\EntityTypeListenerInterface::onEntityTypeCreate()
\Drupal\Core\Entity\EntityTypeEventSubscriberTrait
\Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber::onEntityTypeCreate()
Related topics
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityTypeEvents.php, line 26
Class
- EntityTypeEvents
- Contains all events thrown while handling entity types.
Namespace
Drupal\Core\EntityCode
const CREATE = 'entity_type.definition.create';
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.