function EventSubscriber::getSubscribedEvents

File

core/modules/config/tests/config_events_test/src/EventSubscriber.php, line 58

Class

EventSubscriber

Namespace

Drupal\config_events_test

Code

public static function getSubscribedEvents() : array {
  $events[ConfigEvents::SAVE][] = [
    'configEventRecorder',
  ];
  $events[ConfigEvents::DELETE][] = [
    'configEventRecorder',
  ];
  $events[ConfigEvents::RENAME][] = [
    'configEventRecorder',
  ];
  $events[ConfigCollectionEvents::SAVE_IN_COLLECTION][] = [
    'configEventRecorder',
  ];
  $events[ConfigCollectionEvents::DELETE_IN_COLLECTION][] = [
    'configEventRecorder',
  ];
  $events[ConfigCollectionEvents::RENAME_IN_COLLECTION][] = [
    'configEventRecorder',
  ];
  return $events;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.