function FileCopy::__construct
Same name and namespace in other branches
- 11.x core/modules/migrate/src/Plugin/migrate/process/FileCopy.php \Drupal\migrate\Plugin\migrate\process\FileCopy::__construct()
- 10 core/modules/migrate/src/Plugin/migrate/process/FileCopy.php \Drupal\migrate\Plugin\migrate\process\FileCopy::__construct()
- 9 core/modules/migrate/src/Plugin/migrate/process/FileCopy.php \Drupal\migrate\Plugin\migrate\process\FileCopy::__construct()
- 8.9.x core/modules/migrate/src/Plugin/migrate/process/FileCopy.php \Drupal\migrate\Plugin\migrate\process\FileCopy::__construct()
Constructs a file_copy process plugin.
Parameters
array $configuration: The plugin configuration.
string $plugin_id: The plugin ID.
array $plugin_definition: The plugin definition.
\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $streamWrapperManager: The stream wrapper manager service.
\Drupal\Core\File\FileSystemInterface $fileSystem: The file system service.
\Drupal\migrate\Plugin\MigrateProcessInterface $downloadPlugin: An instance of the download plugin for handling remote URIs.
Overrides FileProcessBase::__construct
File
-
core/
modules/ migrate/ src/ Plugin/ migrate/ process/ FileCopy.php, line 71
Class
- FileCopy
- Copies or moves a local file from one place into another.
Namespace
Drupal\migrate\Plugin\migrate\processCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, protected StreamWrapperManagerInterface $streamWrapperManager, protected FileSystemInterface $fileSystem, protected MigrateProcessInterface $downloadPlugin) {
$configuration += [
'move' => FALSE,
];
parent::__construct($configuration, $plugin_id, $plugin_definition);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.