You are here

final class Events in Entity Usage 8

Same name and namespace in other branches
  1. 8.4 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 {

  /**
   * The USAGE_ADD event occurs when entities are referenced.
   *
   * @var string
   */
  const USAGE_ADD = 'entity_usage.add';

  /**
   * The USAGE_DELETE event occurs when reference to an entity is removed.
   *
   * @var string
   */
  const USAGE_DELETE = 'entity_usage.delete';

  /**
   * The BULK_TARGETS_DELETE event.
   *
   * The BULK_TARGETS_DELETE event occurs when all records of a given
   * entity_type (target) is removed.
   *
   * @var string
   */
  const BULK_TARGETS_DELETE = 'entity_usage.bulk_targets_delete';

  /**
   * The BULK_HOSTS_DELETE event.
   *
   * The BULK_HOSTS_DELETE event occurs when all records of a given entity_type
   * (host) are removed.
   *
   * @var string
   */
  const BULK_HOSTS_DELETE = 'entity_usage.bulk_delete_hosts';

}

Members

Namesort descending Modifiers Type Description Overrides
Events::BULK_HOSTS_DELETE constant The BULK_HOSTS_DELETE event.
Events::BULK_TARGETS_DELETE constant The BULK_TARGETS_DELETE event.
Events::USAGE_ADD constant The USAGE_ADD event occurs when entities are referenced.
Events::USAGE_DELETE constant The USAGE_DELETE event occurs when reference to an entity is removed.