You are here

public function StorageReplaceDataWrapper::getAllCollectionNames in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/config/src/StorageReplaceDataWrapper.php \Drupal\config\StorageReplaceDataWrapper::getAllCollectionNames()

Gets the existing collections.

A configuration storage can contain multiple sets of configuration objects in partitioned collections. The collection key name identifies the current collection used.

Return value

array An array of existing collection names.

Overrides StorageInterface::getAllCollectionNames

File

core/modules/config/src/StorageReplaceDataWrapper.php, line 177

Class

StorageReplaceDataWrapper
Wraps a configuration storage to allow replacing specific configuration data.

Namespace

Drupal\config

Code

public function getAllCollectionNames() {
  return $this->storage
    ->getAllCollectionNames();
}