Merges data into a configuration object.
array $data_to_merge: An array containing data to merge.
\Drupal\Core\Config\Config The configuration object.
public function merge(array $data_to_merge) {
if (!$this->isLoaded) {
$this
->load();
}
// Preserve integer keys so that config keys are not changed.
$this
->replaceData(NestedArray::mergeDeepArray(array(
$this->data,
$data_to_merge,
), TRUE));
return $this;
}