You are here

Events.php in Entity Usage 8.3

File

src/Events/Events.php
View source
<?php

namespace Drupal\entity_usage\Events;


/**
 * Contains all events thrown by Entity Usage.
 */
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';

}

Classes

Namesort descending Description
Events Contains all events thrown by Entity Usage.