Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / lib / Drupal / Core / Entity / EntityTypeEvents.php
1 <?php
2
3 namespace Drupal\Core\Entity;
4
5 /**
6  * Contains all events thrown while handling entity types.
7  */
8 final class EntityTypeEvents {
9
10   /**
11    * The name of the event triggered when a new entity type is created.
12    *
13    * This event allows modules to react to a new entity type being created. The
14    * event listener method receives a \Drupal\Core\Entity\EntityTypeEvent
15    * instance.
16    *
17    * @Event
18    *
19    * @see \Drupal\Core\Entity\EntityTypeEvent
20    * @see \Drupal\Core\Entity\EntityManager::onEntityTypeCreate()
21    * @see \Drupal\Core\Entity\EntityTypeEventSubscriberTrait
22    * @see \Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber::onEntityTypeCreate()
23    *
24    * @var string
25    */
26   const CREATE = 'entity_type.definition.create';
27
28   /**
29    * The name of the event triggered when an existing entity type is updated.
30    *
31    * This event allows modules to react whenever an existing entity type is
32    * updated. The event listener method receives a
33    * \Drupal\Core\Entity\EntityTypeEvent instance.
34    *
35    * @Event
36    *
37    * @see \Drupal\Core\Entity\EntityTypeEvent
38    * @see \Drupal\Core\Entity\EntityManager::onEntityTypeUpdate()
39    * @see \Drupal\Core\Entity\EntityTypeEventSubscriberTrait
40    * @see \Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber::onEntityTypeUpdate()
41    *
42    * @var string
43    */
44   const UPDATE = 'entity_type.definition.update';
45
46   /**
47    * The name of the event triggered when an existing entity type is deleted.
48    *
49    * This event allows modules to react whenever an existing entity type is
50    * deleted.  The event listener method receives a
51    * \Drupal\Core\Entity\EntityTypeEvent instance.
52    *
53    * @Event
54    *
55    * @see \Drupal\Core\Entity\EntityTypeEvent
56    * @see \Drupal\Core\Entity\EntityManager::onEntityTypeDelete()
57    * @see \Drupal\Core\Entity\EntityTypeEventSubscriberTrait
58    * @see \Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber::onEntityTypeDelete()
59    *
60    * @var string
61    */
62   const DELETE = 'entity_type.definition.delete';
63
64 }