You are here

final class FlagEvents in Flag 8.4

Same name in this branch
  1. 8.4 src/Event/FlagEvents.php \Drupal\flag\Event\FlagEvents
  2. 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

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\Event
View 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

Namesort descending Modifiers Type Description Overrides
FlagEvents::ENTITY_FLAGGED constant Event ID for when an entity is flagged.
FlagEvents::ENTITY_UNFLAGGED constant Event ID for when a previously flagged entity is unflagged.