final class Events in Entity Usage 8
Same name and namespace in other branches
- 8.4 src/Events/Events.php \Drupal\entity_usage\Events\Events
- 8.2 src/Events/Events.php \Drupal\entity_usage\Events\Events
- 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\EventsView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Events:: |
constant | The BULK_HOSTS_DELETE event. | ||
Events:: |
constant | The BULK_TARGETS_DELETE event. | ||
Events:: |
constant | The USAGE_ADD event occurs when entities are referenced. | ||
Events:: |
constant | The USAGE_DELETE event occurs when reference to an entity is removed. |