You are here

public function CachedStorage::listAll in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/CachedStorage.php \Drupal\Core\Config\CachedStorage::listAll()
  2. 9 core/lib/Drupal/Core/Config/CachedStorage.php \Drupal\Core\Config\CachedStorage::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();
}