You are here

public function FilteredStorage::getAllCollectionNames in Config Filter 8

Same name and namespace in other branches
  1. 8.2 src/Config/FilteredStorage.php \Drupal\config_filter\Config\FilteredStorage::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

src/Config/FilteredStorage.php, line 226

Class

FilteredStorage
Class FilteredStorage.

Namespace

Drupal\config_filter\Config

Code

public function getAllCollectionNames() {
  $collections = $this->storage
    ->getAllCollectionNames();
  foreach ($this->filters as $filter) {
    $collections = $filter
      ->filterGetAllCollectionNames($collections);
  }
  $collections = array_unique($collections);
  sort($collections);
  return $collections;
}