public function ThemeSettings::get in Express 8
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 requested.
Overrides Config::get
1 call to ThemeSettings::get()
- ThemeSettings::overridesValue in themes/
contrib/ bootstrap/ src/ ThemeSettings.php - Determines if a setting overrides the default value.
File
- themes/
contrib/ bootstrap/ src/ ThemeSettings.php, line 92 - Contains \Drupal\bootstrap\ThemeSettings.
Class
- ThemeSettings
- Provides a configuration API wrapper for runtime merged theme settings.
Namespace
Drupal\bootstrapCode
public function get($key = '') {
if (empty($key)) {
return NestedArray::mergeDeepArray([
$this->defaults,
$this->data,
], TRUE);
}
else {
$value = parent::get($key);
if (!isset($value)) {
$value = $this
->getOriginal($key);
}
}
return $value;
}