final class Events in Entity Usage 8.4
Same name and namespace in other branches
- 8 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 {
/**
* 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Events:: |
constant | Occurs when all records are removed. | ||
Events:: |
constant | Occurs when all records of a given target entity type are removed. | ||
Events:: |
constant | Occurs when all records of a given source entity type are removed. | ||
Events:: |
constant | Occurs when all records from a given entity_type + field are deleted. | ||
Events:: |
constant | Occurs when all records from a given source entity are deleted. | ||
Events:: |
constant | Occurs when all records from a given target entity are deleted. | ||
Events:: |
constant | Occurs when usage records are added or updated. |