function CheckpointStorage::getSubscribedEvents

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Config/Checkpoint/CheckpointStorage.php \Drupal\Core\Config\Checkpoint\CheckpointStorage::getSubscribedEvents()

File

core/lib/Drupal/Core/Config/Checkpoint/CheckpointStorage.php, line 456

Class

CheckpointStorage
Provides a config storage that can make checkpoints.

Namespace

Drupal\Core\Config\Checkpoint

Code

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

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