You are here

final class Events in Entity Usage 8.3

Same name and namespace in other branches
  1. 8.4 src/Events/Events.php \Drupal\entity_usage\Events\Events
  2. 8 src/Events/Events.php \Drupal\entity_usage\Events\Events
  3. 8.2 src/Events/Events.php \Drupal\entity_usage\Events\Events

Contains all events thrown by Entity Usage.

Hierarchy

  • class \Drupal\entity_usage\Events\Events

Expanded class hierarchy of Events

2 files declare their use of Events
EntityUsage.php in src/EntityUsage.php
EntityUsageTest.php in tests/src/Kernel/EntityUsageTest.php

File

src/Events/Events.php, line 8

Namespace

Drupal\entity_usage\Events
View source
final class Events {

  /**
   * Occurs when a usage record is added to the DB.
   *
   * @var string
   */
  const USAGE_REGISTER = 'entity_usage.register';

  /**
   * Occurs when a record is removed from the DB.
   *
   * @var string
   */
  const USAGE_DELETE = 'entity_usage.delete';

  /**
   * Occurs when all records of a given target entity type are removed.
   *
   * @var string
   */
  const BULK_DELETE_DESTINATIONS = 'entity_usage.bulk_delete_targets';

  /**
   * Occurs when all records of a given source entity type are removed.
   *
   * @var string
   */
  const BULK_DELETE_SOURCES = 'entity_usage.bulk_delete_sources';

  /**
   * Occurs when all records from a given source entity are deleted.
   *
   * @var string
   */
  const DELETE_BY_SOURCE_ENTITY = 'entity_usage.delete_by_source_entity';

  /**
   * Occurs when all records from a given target entity are deleted.
   *
   * @var string
   */
  const DELETE_BY_TARGET_ENTITY = 'entity_usage.delete_by_target_entity';

}

Members

Namesort descending Modifiers Type Description Overrides
Events::BULK_DELETE_DESTINATIONS constant Occurs when all records of a given target entity type are removed.
Events::BULK_DELETE_SOURCES constant Occurs when all records of a given source entity type are removed.
Events::DELETE_BY_SOURCE_ENTITY constant Occurs when all records from a given source entity are deleted.
Events::DELETE_BY_TARGET_ENTITY constant Occurs when all records from a given target entity are deleted.
Events::USAGE_DELETE constant Occurs when a record is removed from the DB.
Events::USAGE_REGISTER constant Occurs when a usage record is added to the DB.