public function MediaFileCopy::__construct in Migrate File Entities to Media Entities 8
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
File
- src/
Plugin/ migrate/ process/ MediaFileCopy.php, line 49
Class
- MediaFileCopy
- Copies or local file for usage in media module.
Namespace
Drupal\migrate_file_to_media\Plugin\migrate\processCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, StreamWrapperManagerInterface $stream_wrappers, FileSystemInterface $file_system, MigrateProcessInterface $download_plugin, ModuleHandler $module_handler) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $stream_wrappers, $file_system, $download_plugin);
$this->moduleHandler = $module_handler;
}