$container->
get('file_system'
),
$container->
get('plugin.manager.migrate.process'
)->
createInstance('download',
$configuration) );
} /**
* {@inheritdoc}
*/
public function transform($value, MigrateExecutableInterface
$migrate_executable, Row
$row,
$destination_property) { // If we're stubbing a file entity, return a URI of NULL so it will get
// stubbed by the general process.
if ($row->
isStub()) { return NULL;
} [$source,
$destination] =
$value;
// If the source path or URI represents a remote resource, delegate to the
// download plugin.
if (!
$this->
isLocalUri($source)) { return $this->downloadPlugin->
transform($value,
$migrate_executable,
$row,
$destination_property);
} // Ensure the source file exists, if it's a local URI or path.