function CachedStorage::exists

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

Overrides StorageInterface::exists

File

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

Class

CachedStorage
Defines the cached storage.

Namespace

Drupal\Core\Config

Code

public function exists($name) {
    // The cache would read in the entire data (instead of only checking whether
    // any data exists), and on a potential cache miss, an additional storage
    // lookup would have to happen, so check the storage directly.
    return $this->storage
        ->exists($name);
}

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