1. 8.5.x core/lib/Drupal/Core/Entity/EntityTypeEvents.php EntityTypeEvents::CREATE
  2. 8.0.x core/lib/Drupal/Core/Entity/EntityTypeEvents.php EntityTypeEvents::CREATE
  3. 8.1.x core/lib/Drupal/Core/Entity/EntityTypeEvents.php EntityTypeEvents::CREATE
  4. 8.2.x core/lib/Drupal/Core/Entity/EntityTypeEvents.php EntityTypeEvents::CREATE
  5. 8.3.x core/lib/Drupal/Core/Entity/EntityTypeEvents.php EntityTypeEvents::CREATE
  6. 8.4.x core/lib/Drupal/Core/Entity/EntityTypeEvents.php EntityTypeEvents::CREATE
  7. 8.6.x core/lib/Drupal/Core/Entity/EntityTypeEvents.php 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\EntityManager::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\Entity

Code

const CREATE = 'entity_type.definition.create';