public function FileImport::__construct in Migrate Files (extended) 8
Same name and namespace in other branches
- 2.0.x src/Plugin/migrate/process/FileImport.php \Drupal\migrate_file\Plugin\migrate\process\FileImport::__construct()
Constructs a file_copy process plugin.
Parameters
array $configuration: The plugin configuration.
string $plugin_id: The plugin ID.
mixed $plugin_definition: The plugin definition.
\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrappers: The stream wrapper manager service.
\Drupal\Core\File\FileSystemInterface $file_system: The file system service.
\Drupal\migrate\Plugin\MigrateProcessInterface $download_plugin: An instance of the download plugin for handling remote URIs.
Overrides FileCopy::__construct
1 call to FileImport::__construct()
- ImageImport::__construct in src/
Plugin/ migrate/ process/ ImageImport.php - Constructs a file_copy process plugin.
1 method overrides FileImport::__construct()
- ImageImport::__construct in src/
Plugin/ migrate/ process/ ImageImport.php - Constructs a file_copy process plugin.
File
- src/
Plugin/ migrate/ process/ FileImport.php, line 154
Class
- FileImport
- Imports a file from an local or external source.
Namespace
Drupal\migrate_file\Plugin\migrate\processCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, StreamWrapperManagerInterface $stream_wrappers, FileSystemInterface $file_system, MigrateProcessInterface $download_plugin) {
$configuration += [
'destination' => NULL,
'uid' => NULL,
'skip_on_missing_source' => FALSE,
'id_only' => FALSE,
];
parent::__construct($configuration, $plugin_id, $plugin_definition, $stream_wrappers, $file_system, $download_plugin);
}