EntityTypeListenerInterface.php in Zircon Profile 8.0
Same filename and directory in other branches
Namespace
Drupal\Core\EntityFile
core/lib/Drupal/Core/Entity/EntityTypeListenerInterface.phpView source
<?php
/**
* @file
* Contains \Drupal\Core\Entity\EntityTypeListenerInterface.
*/
namespace Drupal\Core\Entity;
/**
* Defines an interface for reacting to entity type creation, deletion, and updates.
*/
interface EntityTypeListenerInterface {
/**
* Reacts to the creation of the entity type.
*
* @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
* The entity type being created.
*/
public function onEntityTypeCreate(EntityTypeInterface $entity_type);
/**
* Reacts to the update of the entity type.
*
* @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
* The updated entity type definition.
* @param \Drupal\Core\Entity\EntityTypeInterface $original
* The original entity type definition.
*/
public function onEntityTypeUpdate(EntityTypeInterface $entity_type, EntityTypeInterface $original);
/**
* Reacts to the deletion of the entity type.
*
* @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
* The entity type being deleted.
*/
public function onEntityTypeDelete(EntityTypeInterface $entity_type);
}
Interfaces
Name | Description |
---|---|
EntityTypeListenerInterface | Defines an interface for reacting to entity type creation, deletion, and updates. |