public function BackgroundImageSettings::getOverridden in Background Image 8
Same name and namespace in other branches
- 2.x src/BackgroundImageSettings.php \Drupal\background_image\BackgroundImageSettings::getOverridden()
- 2.0.x src/BackgroundImageSettings.php \Drupal\background_image\BackgroundImageSettings::getOverridden()
1 call to BackgroundImageSettings::getOverridden()
File
- src/
BackgroundImageSettings.php, line 76
Class
Namespace
Drupal\background_imageCode
public function getOverridden($key = '') {
// Whole overridden array.
if (empty($key)) {
return $this->overriddenData;
}
// Top level key.
$parts = explode('.', $key);
if (count($parts) == 1) {
return isset($this->overriddenData[$key]) ? $this->overriddenData[$key] : NULL;
}
// Nested key.
$value = NestedArray::getValue($this->overriddenData, $parts, $key_exists);
return $key_exists ? $value : NULL;
}