function MemoryStorage::exists

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

Overrides StorageInterface::exists

2 calls to MemoryStorage::exists()
MemoryStorage::read in core/lib/Drupal/Core/Config/MemoryStorage.php
Reads configuration data from the storage.
MemoryStorage::rename in core/lib/Drupal/Core/Config/MemoryStorage.php
Renames a configuration object in the storage.

File

core/lib/Drupal/Core/Config/MemoryStorage.php, line 39

Class

MemoryStorage
Provides an in memory configuration storage.

Namespace

Drupal\Core\Config

Code

public function exists($name) {
    return isset($this->config[$this->collection][$name]);
}

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