You are here

public static function DateRecurOccurrences::getSubscribedEvents in Recurring Dates Field 3.0.x

Same name and namespace in other branches
  1. 8.2 src/DateRecurOccurrences.php \Drupal\date_recur\DateRecurOccurrences::getSubscribedEvents()
  2. 3.x src/DateRecurOccurrences.php \Drupal\date_recur\DateRecurOccurrences::getSubscribedEvents()
  3. 3.1.x src/DateRecurOccurrences.php \Drupal\date_recur\DateRecurOccurrences::getSubscribedEvents()

File

src/DateRecurOccurrences.php, line 452

Class

DateRecurOccurrences
Manages occurrences tables and the data that populates them.

Namespace

Drupal\date_recur

Code

public static function getSubscribedEvents() : array {
  return [
    DateRecurEvents::FIELD_VALUE_SAVE => [
      'onSave',
    ],
    DateRecurEvents::FIELD_ENTITY_DELETE => [
      'onEntityDelete',
    ],
    DateRecurEvents::FIELD_REVISION_DELETE => [
      'onEntityRevisionDelete',
    ],
  ] + static::getEntityTypeEvents() + static::getFieldStorageDefinitionEvents();
}