public function BackgroundImageSettings::merge in Background Image 8
Same name and namespace in other branches
- 2.x src/BackgroundImageSettings.php \Drupal\background_image\BackgroundImageSettings::merge()
- 2.0.x src/BackgroundImageSettings.php \Drupal\background_image\BackgroundImageSettings::merge()
Merges data into a configuration object.
Parameters
array $data_to_merge: An array containing data to merge.
Return value
$this The configuration object.
Overrides ConfigBase::merge
1 call to BackgroundImageSettings::merge()
- BackgroundImageSettings::initWithData in src/
BackgroundImageSettings.php - Initializes a configuration object with pre-loaded data.
File
- src/
BackgroundImageSettings.php, line 127
Class
Namespace
Drupal\background_imageCode
public function merge(array $data_to_merge) {
foreach ($data_to_merge as $key => $value) {
$this
->set($key, $value);
}
return $this;
}