function StorageInterface::exists

Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/StorageInterface.php \Drupal\Core\Config\StorageInterface::exists()
  2. 8.9.x core/lib/Drupal/Core/Config/StorageInterface.php \Drupal\Core\Config\StorageInterface::exists()
  3. 11.x core/lib/Drupal/Core/Config/StorageInterface.php \Drupal\Core\Config\StorageInterface::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.

11 methods override StorageInterface::exists()
CachedStorage::exists in core/lib/Drupal/Core/Config/CachedStorage.php
Returns whether a configuration object exists.
DatabaseStorage::exists in core/lib/Drupal/Core/Config/DatabaseStorage.php
Returns whether a configuration object exists.
FileStorage::exists in core/lib/Drupal/Core/Config/FileStorage.php
Returns whether a configuration object exists.
ManagedStorage::exists in core/lib/Drupal/Core/Config/ManagedStorage.php
Returns whether a configuration object exists.
MemoryStorage::exists in core/lib/Drupal/Core/Config/MemoryStorage.php
Returns whether a configuration object exists.

... See full list

File

core/lib/Drupal/Core/Config/StorageInterface.php, line 32

Class

StorageInterface
Defines an interface for configuration storage.

Namespace

Drupal\Core\Config

Code

public function exists($name);

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