function Download::__construct
Same name in other branches
- 9 core/modules/migrate/src/Plugin/migrate/process/Download.php \Drupal\migrate\Plugin\migrate\process\Download::__construct()
- 8.9.x core/modules/migrate/src/Plugin/migrate/process/Download.php \Drupal\migrate\Plugin\migrate\process\Download::__construct()
- 11.x core/modules/migrate/src/Plugin/migrate/process/Download.php \Drupal\migrate\Plugin\migrate\process\Download::__construct()
Constructs a download process plugin.
Parameters
array $configuration: The plugin configuration.
string $plugin_id: The plugin ID.
array $plugin_definition: The plugin definition.
\Drupal\Core\File\FileSystemInterface $file_system: The file system service.
\GuzzleHttp\ClientInterface $http_client: The HTTP client.
Overrides FileProcessBase::__construct
File
-
core/
modules/ migrate/ src/ Plugin/ migrate/ process/ Download.php, line 93
Class
- Download
- Downloads a file from a HTTP(S) remote location into the local file system.
Namespace
Drupal\migrate\Plugin\migrate\processCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, FileSystemInterface $file_system, ClientInterface $http_client) {
$configuration += [
'guzzle_options' => [],
];
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->fileSystem = $file_system;
$this->httpClient = $http_client;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.