FileStorage::getAllCollectionNames
public function FileStorage::getAllCollectionNames
public FileStorage::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/Config/FileStorage.php, line 255
Class
- FileStorage
- Defines the file storage.
Namespace
Drupal\Core\ConfigCode
public function getAllCollectionNames() { $collections = $this->getAllCollectionNamesHelper($this->directory); sort($collections); return $collections; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!FileStorage.php/function/FileStorage::getAllCollectionNames/8.1.x