Config::setData

public Config::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. Overrides ConfigBase::setData File core/lib/Drupal/Core/Config/Config.php, line 106 Class Config Defines the default configuration object. Namespace Drupal\Core\Config Code public function setData(array $data)

Config::set

public Config::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. Overrides ConfigBase::set File core/lib/Drupal/Core/Config/Config.php, line 183 Class Config Defines the default configuration object

Config::save

public Config::save($has_trusted_data = FALSE) Saves the configuration object. Must invalidate the cache tags associated with the configuration object. Parameters bool $has_trusted_data: Set to TRUE if the configuration data has already been checked to ensure it conforms to schema. Generally this is only used during module and theme installation. Return value $this Overrides StorableConfigBase::save See also \Drupal\Core\Config\ConfigInstaller::createConfiguration() File core/lib/Drupal/Core

Config::resetOverriddenData

protected Config::resetOverriddenData() Resets the current data, so overrides are re-applied. This method should be called after the original data or the overridden data has been changed. Return value \Drupal\Core\Config\Config The configuration object. File core/lib/Drupal/Core/Config/Config.php, line 175 Class Config Defines the default configuration object. Namespace Drupal\Core\Config Code protected function resetOverriddenData() { unset($this->overriddenData); return $this

Config::initWithData

public Config::initWithData(array $data) Initializes a configuration object with pre-loaded data. Parameters array $data: Array of loaded data for this configuration object. Return value $this The configuration object. Overrides StorableConfigBase::initWithData File core/lib/Drupal/Core/Config/Config.php, line 75 Class Config Defines the default configuration object. Namespace Drupal\Core\Config Code public function initWithData(array $data) { parent::initWithData($data); $this-&

Config::getRawData

public Config::getRawData() Gets the raw data without overrides. Return value array The raw data. File core/lib/Drupal/Core/Config/Config.php, line 258 Class Config Defines the default configuration object. Namespace Drupal\Core\Config Code public function getRawData() { return $this->data; }

Config::getOriginal

public Config::getOriginal($key = '', $apply_overrides = TRUE) Gets original data from this configuration object. Original data is the data as it is immediately after loading from configuration storage before any changes. If this is a new configuration object it will be an empty array. Parameters string $key: A string that maps to a key within the configuration data. bool $apply_overrides: Apply any overrides to the original data. Defaults to TRUE. Return value mixed The data that was request

Config::get

public Config::get($key = '') Gets data from this configuration object. Parameters string $key: A string that maps to a key within the configuration data. For instance in the following configuration array: array( 'foo' => array( 'bar' => 'baz', ), ); A key of 'foo.bar' would return the string 'baz'. However, a key of 'foo' would return array('bar' => 'baz'). If no key is specified, then the entire data array is returned. Return value mixed The data that was requ

Config::delete

public Config::delete() Deletes the configuration object. Return value \Drupal\Core\Config\Config The configuration object. Overrides StorableConfigBase::delete File core/lib/Drupal/Core/Config/Config.php, line 241 Class Config Defines the default configuration object. Namespace Drupal\Core\Config Code public function delete() { $this->data = array(); $this->storage->delete($this->name); Cache::invalidateTags($this->getCacheTags()); $this->isNew = TRUE; $th

Config::clear

public Config::clear($key) Unsets a value in this configuration object. Parameters string $key: Name of the key whose value should be unset. Return value $this The configuration object. Overrides ConfigBase::clear File core/lib/Drupal/Core/Config/Config.php, line 192 Class Config Defines the default configuration object. Namespace Drupal\Core\Config Code public function clear($key) { parent::clear($key); $this->resetOverriddenData(); return $this; }