function FileStorage::getAllCollectionNames
Same name in other branches
- 9 core/lib/Drupal/Core/Config/FileStorage.php \Drupal\Core\Config\FileStorage::getAllCollectionNames()
- 8.9.x core/lib/Drupal/Core/Config/FileStorage.php \Drupal\Core\Config\FileStorage::getAllCollectionNames()
- 11.x core/lib/Drupal/Core/Config/FileStorage.php \Drupal\Core\Config\FileStorage::getAllCollectionNames()
Overrides StorageInterface::getAllCollectionNames
File
-
core/
lib/ Drupal/ Core/ Config/ FileStorage.php, line 275
Class
- FileStorage
- Defines the file storage.
Namespace
Drupal\Core\ConfigCode
public function getAllCollectionNames() {
if (!is_dir($this->directory)) {
return [];
}
$collections = $this->getAllCollectionNamesHelper($this->directory);
sort($collections);
return $collections;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.