function FileStorage::getAllCollectionNames

Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/FileStorage.php \Drupal\Core\Config\FileStorage::getAllCollectionNames()
  2. 8.9.x core/lib/Drupal/Core/Config/FileStorage.php \Drupal\Core\Config\FileStorage::getAllCollectionNames()
  3. 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\Config

Code

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.