ConfigBase::get

public ConfigBase::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

ConfigBase::clear

public ConfigBase::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. File core/lib/Drupal/Core/Config/ConfigBase.php, line 228 Class ConfigBase Provides a base class for configuration objects with get/set support. Namespace Drupal\Core\Config Code public function clear($key) { $parts = explode('.', $key); if (count($parts) == 1) { unset($this->data[$key]

ConfigBase::castSafeStrings

protected ConfigBase::castSafeStrings($data) Casts any objects that implement MarkupInterface to string. Parameters mixed $data: The configuration data. Return value mixed The data with any safe strings cast to string. File core/lib/Drupal/Core/Config/ConfigBase.php, line 284 Class ConfigBase Provides a base class for configuration objects with get/set support. Namespace Drupal\Core\Config Code protected function castSafeStrings($data) { if ($data instanceof MarkupInterface) {

ConfigBase::$name

The name of the configuration object. Type: string File core/lib/Drupal/Core/Config/ConfigBase.php, line 36 Class ConfigBase Provides a base class for configuration objects with get/set support. Namespace Drupal\Core\Config Code protected $name;

ConfigBase::$data

The data of the configuration object. Type: array File core/lib/Drupal/Core/Config/ConfigBase.php, line 43 Class ConfigBase Provides a base class for configuration objects with get/set support. Namespace Drupal\Core\Config Code protected $data = array();

ConfigBase

Provides a base class for configuration objects with get/set support. Encapsulates all capabilities needed for runtime configuration handling for a specific configuration object. Extend directly from this class for non-storable configuration where the configuration API is desired but storage is not possible; for example, if the data is derived at runtime. For storable configuration, extend \Drupal\Core\Config\StorableConfigBase. Hierarchy class \Drupal\Core\Config\ConfigBase implements Refinabl

Config::__construct

public Config::__construct($name, StorageInterface $storage, EventDispatcherInterface $event_dispatcher, TypedConfigManagerInterface $typed_config) Constructs a configuration object. Parameters string $name: The name of the configuration object being constructed. \Drupal\Core\Config\StorageInterface $storage: A storage object to use for reading and writing the configuration data. \Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: An event dispatcher instance to use

Config::setSettingsOverride

public Config::setSettingsOverride(array $data) Sets settings.php overrides for this configuration object. The overridden data only applies to this configuration object. Parameters array $data: The overridden values of the configuration data. Return value \Drupal\Core\Config\Config The configuration object. File core/lib/Drupal/Core/Config/Config.php, line 123 Class Config Defines the default configuration object. Namespace Drupal\Core\Config Code public function setSettingsOverride(

Config::setOverriddenData

protected Config::setOverriddenData() Sets the current data for this configuration object. Configuration overrides operate at two distinct layers: modules and settings.php. Overrides in settings.php take precedence over values provided by modules. Precedence or different module overrides is determined by the priority of the config.factory.override tagged services. Return value \Drupal\Core\Config\Config The configuration object. File core/lib/Drupal/Core/Config/Config.php, line 155 Class C

Config::setModuleOverride

public Config::setModuleOverride(array $data) Sets module overrides for this configuration object. Parameters array $data: The overridden values of the configuration data. Return value \Drupal\Core\Config\Config The configuration object. File core/lib/Drupal/Core/Config/Config.php, line 138 Class Config Defines the default configuration object. Namespace Drupal\Core\Config Code public function setModuleOverride(array $data) { $this->moduleOverrides = $data; $this->resetOver