public function MemoryStorage::exists in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Config/MemoryStorage.php \Drupal\Core\Config\MemoryStorage::exists()
- 10 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\ConfigCode
public function exists($name) {
return isset($this->config[$this->collection][$name]);
}