public function CachedStorage::exists

Implements Drupal\Core\Config\StorageInterface::exists().

Overrides StorageInterface::exists

File

drupal/core/lib/Drupal/Core/Config/CachedStorage.php, line 51
Contains Drupal\Core\Config\CachedStorage.

Class

CachedStorage
Defines the cached storage controller.

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);
}