public function FileCopy::__construct in Migrate Plus 8.2
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.
Overrides PluginBase::__construct
File
- src/
Plugin/ migrate/ process/ FileCopy.php, line 52  
Class
- FileCopy
 - Copy a file from one place into another.
 
Namespace
Drupal\migrate_plus\Plugin\migrate\processCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, StreamWrapperManagerInterface $stream_wrappers, FileSystemInterface $file_system) {
  $configuration += array(
    'move' => FALSE,
    'rename' => FALSE,
  );
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->streamWrapperManager = $stream_wrappers;
  $this->fileSystem = $file_system;
}