function CachedStorage::listAll

Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/CachedStorage.php \Drupal\Core\Config\CachedStorage::listAll()
  2. 8.9.x core/lib/Drupal/Core/Config/CachedStorage.php \Drupal\Core\Config\CachedStorage::listAll()
  3. 10 core/lib/Drupal/Core/Config/CachedStorage.php \Drupal\Core\Config\CachedStorage::listAll()

Overrides StorageInterface::listAll

File

core/lib/Drupal/Core/Config/CachedStorage.php, line 180

Class

CachedStorage
Defines the cached storage.

Namespace

Drupal\Core\Config

Code

public function listAll($prefix = '') {
    // Do not cache when a prefix is not provided.
    if ($prefix) {
        return $this->findByPrefix($prefix);
    }
    return $this->storage
        ->listAll();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.