Same filename and directory in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityTypeEvents.php
  2. 9 core/lib/Drupal/Core/Entity/EntityTypeEvents.php

Namespace

Drupal\Core\Entity

File

core/lib/Drupal/Core/Entity/EntityTypeEvents.php
View source
<?php

namespace Drupal\Core\Entity;


/**
 * Contains all events thrown while handling entity types.
 */
final class EntityTypeEvents {

  /**
   * 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.
   *
   * @Event
   *
   * @see \Drupal\Core\Entity\EntityTypeEvent
   * @see \Drupal\Core\Entity\EntityTypeListenerInterface::onEntityTypeCreate()
   * @see \Drupal\Core\Entity\EntityTypeEventSubscriberTrait
   * @see \Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber::onEntityTypeCreate()
   *
   * @var string
   */
  const CREATE = 'entity_type.definition.create';

  /**
   * The name of the event triggered when an existing entity type is updated.
   *
   * This event allows modules to react whenever an existing entity type is
   * updated. The event listener method receives a
   * \Drupal\Core\Entity\EntityTypeEvent instance.
   *
   * @Event
   *
   * @see \Drupal\Core\Entity\EntityTypeEvent
   * @see \Drupal\Core\Entity\EntityTypeListenerInterface::onEntityTypeUpdate()
   * @see \Drupal\Core\Entity\EntityTypeEventSubscriberTrait
   * @see \Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber::onEntityTypeUpdate()
   *
   * @var string
   */
  const UPDATE = 'entity_type.definition.update';

  /**
   * 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.
   *
   * @Event
   *
   * @see \Drupal\Core\Entity\EntityTypeEvent
   * @see \Drupal\Core\Entity\EntityTypeListenerInterface::onEntityTypeDelete()
   * @see \Drupal\Core\Entity\EntityTypeEventSubscriberTrait
   * @see \Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber::onEntityTypeDelete()
   *
   * @var string
   */
  const DELETE = 'entity_type.definition.delete';

}

Classes

Namesort descending Description
EntityTypeEvents Contains all events thrown while handling entity types.