public function ProductVariationFile::__construct in Commerce Migrate 3.0.x
Same name and namespace in other branches
- 8.2 modules/csv_example/src/Plugin/migrate/process/ProductVariationFile.php \Drupal\commerce_migrate_csv_example\Plugin\migrate\process\ProductVariationFile::__construct()
- 3.1.x modules/csv_example/src/Plugin/migrate/process/ProductVariationFile.php \Drupal\commerce_migrate_csv_example\Plugin\migrate\process\ProductVariationFile::__construct()
Constructs a FieldFile plugin instance.
Parameters
array $configuration: The plugin configuration.
string $plugin_id: The plugin ID.
mixed $plugin_definition: The plugin definition.
\Drupal\migrate\Plugin\MigrationInterface $migration: The current migration.
\Drupal\migrate\Plugin\MigrateProcessInterface $migration_plugin: An instance of the 'migration' process plugin.
Overrides PluginBase::__construct
File
- modules/
csv_example/ src/ Plugin/ migrate/ process/ ProductVariationFile.php, line 68
Class
- ProductVariationFile
- Get the fid for the provided filename.
Namespace
Drupal\commerce_migrate_csv_example\Plugin\migrate\processCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, MigrateProcessInterface $migration_plugin) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->migration = $migration;
$this->migrationPlugin = $migration_plugin;
}