You are here

final class Events in Entity Usage 8.4

Same name and namespace in other branches
  1. 8 src/Events/Events.php \Drupal\entity_usage\Events\Events
  2. 8.2 src/Events/Events.php \Drupal\entity_usage\Events\Events
  3. 8.3 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 usage records are added or updated.
   *
   * @var string
   */
  const USAGE_REGISTER = 'entity_usage.register';

  /**
   * 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 are removed.
   *
   * @var string
   */
  const BULK_DELETE_ALL = 'entity_usage.bulk_delete_all';

  /**
   * Occurs when all records from a given entity_type + field are deleted.
   *
   * @var string
   */
  const DELETE_BY_FIELD = 'entity_usage.delete_by_field';

  /**
   * 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_ALL constant Occurs when all records are removed.
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_FIELD constant Occurs when all records from a given entity_type + field are deleted.
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_REGISTER constant Occurs when usage records are added or updated.