final class FlagEvents in Flag 8.4
Same name in this branch
- 8.4 src/Event/FlagEvents.php \Drupal\flag\Event\FlagEvents
- 8.4 tests/modules/flag_event_test/src/EventSubscriber/FlagEvents.php \Drupal\flag_event_test\EventSubscriber\FlagEvents
Contains all events thrown in the Flag module.
Hierarchy
- class \Drupal\flag\Event\FlagEvents
Expanded class hierarchy of FlagEvents
3 files declare their use of FlagEvents
- FlagCountManager.php in src/
FlagCountManager.php - FlagEvents.php in tests/
modules/ flag_event_test/ src/ EventSubscriber/ FlagEvents.php - Flagging.php in src/
Entity/ Flagging.php
File
- src/
Event/ FlagEvents.php, line 8
Namespace
Drupal\flag\EventView source
final class FlagEvents {
/**
* Event ID for when an entity is flagged.
*
* @Event
*
* @var string
*/
const ENTITY_FLAGGED = 'flag.entity_flagged';
/**
* Event ID for when a previously flagged entity is unflagged.
*
* @Event
*
* @var string
*/
const ENTITY_UNFLAGGED = 'flag.entity_unflagged';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FlagEvents:: |
constant | Event ID for when an entity is flagged. | ||
FlagEvents:: |
constant | Event ID for when a previously flagged entity is unflagged. |