public function transform(StorageInterface
$storage) { // We use a database storage to reduce the memory requirement.
$mutable =
new DatabaseStorage($this->connection, 'config_import'
);
if (!
$this->persistentLock->
lockMayBeAvailable(ConfigImporter::LOCK_NAME
)) { // If the config importer is already importing, the transformation will
// always be the one the config importer is already using. This makes sure
// that even if the storage changes the importer continues importing the
// same configuration.
return $mutable;
} // Acquire a lock to ensure that the storage is not changed when a
// concurrent request tries to transform the storage. The lock will be