1. 8.5.x core/lib/Drupal/Core/Entity/EntityTypeEvents.php EntityTypeEvents::DELETE
  2. 8.0.x core/lib/Drupal/Core/Entity/EntityTypeEvents.php EntityTypeEvents::DELETE
  3. 8.1.x core/lib/Drupal/Core/Entity/EntityTypeEvents.php EntityTypeEvents::DELETE
  4. 8.2.x core/lib/Drupal/Core/Entity/EntityTypeEvents.php EntityTypeEvents::DELETE
  5. 8.3.x core/lib/Drupal/Core/Entity/EntityTypeEvents.php EntityTypeEvents::DELETE
  6. 8.4.x core/lib/Drupal/Core/Entity/EntityTypeEvents.php EntityTypeEvents::DELETE
  7. 8.6.x core/lib/Drupal/Core/Entity/EntityTypeEvents.php EntityTypeEvents::DELETE

The name of the event triggered when an existing entity type is deleted.

This event allows modules to react whenever an existing entity type is deleted. The event listener method receives a \Drupal\Core\Entity\EntityTypeEvent instance.

See also

\Drupal\Core\Entity\EntityTypeEvent

\Drupal\Core\Entity\EntityManager::onEntityTypeDelete()

\Drupal\Core\Entity\EntityTypeEventSubscriberTrait

\Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber::onEntityTypeDelete()

Related topics

File

core/lib/Drupal/Core/Entity/EntityTypeEvents.php, line 62

Class

EntityTypeEvents
Contains all events thrown while handling entity types.

Namespace

Drupal\Core\Entity

Code

const DELETE = 'entity_type.definition.delete';