public function ImageImport::__construct in Migrate Files (extended) 8
Same name and namespace in other branches
- 2.0.x src/Plugin/migrate/process/ImageImport.php \Drupal\migrate_file\Plugin\migrate\process\ImageImport::__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 FileImport::__construct
File
- src/
Plugin/ migrate/ process/ ImageImport.php, line 84
Class
- ImageImport
- Imports an image 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 += [
'title' => NULL,
'alt' => NULL,
'width' => NULL,
'height' => NULL,
];
parent::__construct($configuration, $plugin_id, $plugin_definition, $stream_wrappers, $file_system, $download_plugin);
}