function CheckpointStorage::getAllCollectionNames

Overrides StorageInterface::getAllCollectionNames

1 call to CheckpointStorage::getAllCollectionNames()
CheckpointStorage::checkpoint in core/lib/Drupal/Core/Config/Checkpoint/CheckpointStorage.php
Creates a checkpoint, if required, and returns the active checkpoint.

File

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

Class

CheckpointStorage
Provides a config storage that can make checkpoints.

Namespace

Drupal\Core\Config\Checkpoint

Code

public function getAllCollectionNames() {
    $names = [];
    foreach ($this->getCheckpointsToReadFrom() as $checkpoint) {
        $names = array_merge($names, $this->getKeyValue($checkpoint->id, StorageInterface::DEFAULT_COLLECTION)
            ->get(static::CONFIG_COLLECTION_KEY, []));
    }
    return array_unique(array_merge($this->activeStorage
        ->getAllCollectionNames(), $names));
}

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