public function InMemoryStorage::getAllCollectionNames in Configuration Provider 8
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/
InMemoryStorage.php, line 166
Class
- InMemoryStorage
- Provides an in memory confituration storage.
Namespace
Drupal\config_providerCode
public function getAllCollectionNames() {
$collections = array_keys($this->config);
// The default collection is not included here.
unset($collections[array_search(StorageInterface::DEFAULT_COLLECTION, $collections)]);
return $collections;
}