Creates the update changelist.
\Drupal\Core\Config\StorageComparerInterface An object which implements the StorageComparerInterface.
Overrides StorageComparerInterface::addChangelistUpdate
public function addChangelistUpdate() {
foreach (array_intersect($this
->getSourceNames(), $this
->getTargetNames()) as $name) {
$source_config_data = $this->sourceStorage
->read($name);
$target_config_data = $this->targetStorage
->read($name);
if ($source_config_data !== $target_config_data) {
$this
->addChangeList('update', array(
$name,
));
}
}
return $this;
}