You are here

public function MemoryStorage::exists in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/MemoryStorage.php \Drupal\Core\Config\MemoryStorage::exists()

Returns whether a configuration object exists.

Parameters

string $name: The name of a configuration object to test.

Return value

bool TRUE if the configuration object exists, FALSE otherwise.

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