You are here

interface EntityTypeListenerInterface in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/EntityTypeListenerInterface.php \Drupal\Core\Entity\EntityTypeListenerInterface

Defines an interface for reacting to entity type creation, deletion, and updates.

Hierarchy

Expanded class hierarchy of EntityTypeListenerInterface

All classes that implement EntityTypeListenerInterface

3 files declare their use of EntityTypeListenerInterface
EntityStorageSchemaInterface.php in core/lib/Drupal/Core/Entity/Schema/EntityStorageSchemaInterface.php
Contains \Drupal\Core\Entity\Schema\EntityStorageSchemaInterface.
EntityTestDefinitionSubscriber.php in core/modules/system/tests/modules/entity_test/src/EntityTestDefinitionSubscriber.php
Contains \Drupal\entity_test\EntityTestDefinitionSubscriber.
ViewsEntitySchemaSubscriber.php in core/modules/views/src/EventSubscriber/ViewsEntitySchemaSubscriber.php
Contains \Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber.

File

core/lib/Drupal/Core/Entity/EntityTypeListenerInterface.php, line 13
Contains \Drupal\Core\Entity\EntityTypeListenerInterface.

Namespace

Drupal\Core\Entity
View source
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);

}

Members

Namesort descending Modifiers Type Description Overrides
EntityTypeListenerInterface::onEntityTypeCreate public function Reacts to the creation of the entity type. 4
EntityTypeListenerInterface::onEntityTypeDelete public function Reacts to the deletion of the entity type. 4
EntityTypeListenerInterface::onEntityTypeUpdate public function Reacts to the update of the entity type. 4