ConfigBase::validateKeys

protected ConfigBase::validateKeys(array $data) Validates all keys in a passed in config array structure. Parameters array $data: Configuration array structure. Return value null Throws \Drupal\Core\Config\ConfigValueException If any key in $data in any depth contains a dot. File core/lib/Drupal/Core/Config/ConfigBase.php, line 208 Class ConfigBase Provides a base class for configuration objects with get/set support. Namespace Drupal\Core\Config Code protected function validateKeys(

ConfigBase::setName

public ConfigBase::setName($name) Sets the name of this configuration object. Parameters string $name: The name of the configuration object. Return value $this The configuration object. File core/lib/Drupal/Core/Config/ConfigBase.php, line 79 Class ConfigBase Provides a base class for configuration objects with get/set support. Namespace Drupal\Core\Config Code public function setName($name) { $this->name = $name; return $this; }

ConfigBase::setData

public ConfigBase::setData(array $data) Replaces the data of this configuration object. Parameters array $data: The new configuration data. Return value $this The configuration object. Throws \Drupal\Core\Config\ConfigValueException If any key in $data in any depth contains a dot. File core/lib/Drupal/Core/Config/ConfigBase.php, line 159 Class ConfigBase Provides a base class for configuration objects with get/set support. Namespace Drupal\Core\Config Code public function setData(ar

ConfigBase::set

public ConfigBase::set($key, $value) Sets a value in this configuration object. Parameters string $key: Identifier to store value in configuration. mixed $value: Value to associate with identifier. Return value $this The configuration object. Throws \Drupal\Core\Config\ConfigValueException If $value is an array and any of its keys in any depth contains a dot. File core/lib/Drupal/Core/Config/ConfigBase.php, line 180 Class ConfigBase Provides a base class for configuration objects with g

ConfigBase::merge

public ConfigBase::merge(array $data_to_merge) Merges data into a configuration object. Parameters array $data_to_merge: An array containing data to merge. Return value $this The configuration object. File core/lib/Drupal/Core/Config/ConfigBase.php, line 248 Class ConfigBase Provides a base class for configuration objects with get/set support. Namespace Drupal\Core\Config Code public function merge(array $data_to_merge) { // Preserve integer keys so that configuration keys are not

ConfigBase::MAX_NAME_LENGTH

The maximum length of a configuration object name. Many filesystems (including HFS, NTFS, and ext4) have a maximum file name length of 255 characters. To ensure that no configuration objects incompatible with this limitation are created, we enforce a maximum name length of 250 characters (leaving 5 characters for the file extension). Configuration objects not stored on the filesystem should still be restricted in name length so name can be used as a cache key. See also http://wikipedia.org/wik

ConfigBase::getName

public ConfigBase::getName() Returns the name of this configuration object. Return value string The name of the configuration object. File core/lib/Drupal/Core/Config/ConfigBase.php, line 66 Class ConfigBase Provides a base class for configuration objects with get/set support. Namespace Drupal\Core\Config Code public function getName() { return $this->name; }

ConfigBase::getCacheTags

public ConfigBase::getCacheTags() The cache tags associated with this object. When this object is modified, these cache tags will be invalidated. Return value string[] A set of cache tags. Overrides RefinableCacheableDependencyTrait::getCacheTags File core/lib/Drupal/Core/Config/ConfigBase.php, line 264 Class ConfigBase Provides a base class for configuration objects with get/set support. Namespace Drupal\Core\Config Code public function getCacheTags() { return Cache::mergeTags(['co

ConfigBase::getCacheMaxAge

public ConfigBase::getCacheMaxAge() The maximum age for which this object may be cached. Return value int The maximum time in seconds that this object may be cached. Overrides RefinableCacheableDependencyTrait::getCacheMaxAge File core/lib/Drupal/Core/Config/ConfigBase.php, line 271 Class ConfigBase Provides a base class for configuration objects with get/set support. Namespace Drupal\Core\Config Code public function getCacheMaxAge() { return $this->cacheMaxAge; }

ConfigBase::getCacheContexts

public ConfigBase::getCacheContexts() The cache contexts associated with this object. These identify a specific variation/representation of the object. Cache contexts are tokens: placeholders that are converted to cache keys by the @cache_contexts_manager service. The replacement value depends on the request context (the current URL, language, and so on). They're converted before storing an object in cache. Return value string[] An array of cache context tokens, used to generate a cache ID. Ov