protected $targetCacheStorage;
/**
* Constructs the Configuration storage comparer.
*
* @param \Drupal\Core\Config\StorageInterface $source_storage
* Storage object used to read configuration.
* @param \Drupal\Core\Config\StorageInterface $target_storage
* Storage object used to write configuration.
*/
public function __construct(StorageInterface
$source_storage, StorageInterface
$target_storage) { if ($source_storage->
getCollectionName() !== StorageInterface::DEFAULT_COLLECTION
) { $source_storage =
$source_storage->
createCollection(StorageInterface::DEFAULT_COLLECTION
);
} if ($target_storage->
getCollectionName() !== StorageInterface::DEFAULT_COLLECTION
) { $target_storage =
$target_storage->
createCollection(StorageInterface::DEFAULT_COLLECTION
);
} // Wrap the storages in a static cache so that multiple reads of the same
// raw configuration object are not costly.
$this->sourceCacheStorage =
new MemoryBackend();
$this->sourceStorage =
new CachedStorage( $source_storage,