$target_storage =
$this->
getTargetStorage($collection);
$target_names =
$target_storage->
listAll();
$source_names =
$source_storage->
listAll();
// Prime the static caches by reading all the configuration in the source
// and target storages.
$target_data =
$target_storage->
readMultiple($target_names);
$source_data =
$source_storage->
readMultiple($source_names);
// If the collection only supports simple configuration do not use
// configuration dependencies.
if ($collection == StorageInterface::DEFAULT_COLLECTION
) { $dependency_manager =
new ConfigDependencyManager();
$this->targetNames
[$collection] =
$dependency_manager->
setData($target_data)->
sortAll();
$this->sourceNames
[$collection] =
$dependency_manager->
setData($source_data)->
sortAll();
} else { $this->targetNames
[$collection] =
$target_names;
$this->sourceNames
[$collection] =
$source_names;
} } /**
* Creates a rename name from the old and new names for the object.
*
* @param string $old_name
* The old configuration object name.
* @param string $new_name
* The new configuration object name.
*
* @return string
* The configuration change name that encodes both the old and the new name.
*
* @see \Drupal\Core\Config\StorageComparerInterface::extractRenameNames()
*/