Upgraded drupal core with security updates
[yaffs-website] / web / core / lib / Drupal / Core / Entity / EntityTypeListenerInterface.php
1 <?php
2
3 namespace Drupal\Core\Entity;
4
5 /**
6  * Defines an interface for reacting to entity type creation, deletion, and updates.
7  */
8 interface EntityTypeListenerInterface {
9
10   /**
11    * Reacts to the creation of the entity type.
12    *
13    * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
14    *   The entity type being created.
15    */
16   public function onEntityTypeCreate(EntityTypeInterface $entity_type);
17
18   /**
19    * Reacts to the update of the entity type.
20    *
21    * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
22    *   The updated entity type definition.
23    * @param \Drupal\Core\Entity\EntityTypeInterface $original
24    *   The original entity type definition.
25    */
26   public function onEntityTypeUpdate(EntityTypeInterface $entity_type, EntityTypeInterface $original);
27
28   /**
29    * Reacts to the deletion of the entity type.
30    *
31    * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
32    *   The entity type being deleted.
33    */
34   public function onEntityTypeDelete(EntityTypeInterface $entity_type);
35
36 }