function RecipeMultipleModulesConfigStorage::getAllCollectionNames
Same name and namespace in other branches
- main core/lib/Drupal/Core/Recipe/RecipeMultipleModulesConfigStorage.php \Drupal\Core\Recipe\RecipeMultipleModulesConfigStorage::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/
lib/ Drupal/ Core/ Recipe/ RecipeMultipleModulesConfigStorage.php, line 220
Class
- RecipeMultipleModulesConfigStorage
- Provides a read-only config storage spanning multiple modules' config.
Namespace
Drupal\Core\RecipeCode
public function getAllCollectionNames() : array {
$names = [];
foreach ($this->fileStorages as $fileStorage) {
$names = array_merge($names, $fileStorage->getAllCollectionNames());
}
return array_values(array_unique($names));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.