public function Spreadsheet::__construct in Migrate Spreadsheet 8
Same name and namespace in other branches
- 2.0.x src/Plugin/migrate/source/Spreadsheet.php \Drupal\migrate_spreadsheet\Plugin\migrate\source\Spreadsheet::__construct()
Constructs a spreadsheet migration source plugin object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\migrate\Plugin\MigrationInterface $migration: The current migration.
\Drupal\Core\File\FileSystemInterface $file_system: The file system service.
\Drupal\migrate_spreadsheet\SpreadsheetIteratorInterface $spreadsheet_iterator: The migrate spreadsheet iterator.
Overrides SourcePluginBase::__construct
File
- src/
Plugin/ migrate/ source/ Spreadsheet.php, line 66
Class
- Spreadsheet
- Provides a source plugin that migrate from spreadsheet files.
Namespace
Drupal\migrate_spreadsheet\Plugin\migrate\sourceCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, FileSystemInterface $file_system, SpreadsheetIteratorInterface $spreadsheet_iterator) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $migration);
$this
->setConfiguration($configuration);
$this->fileSystem = $file_system;
$this->spreadsheetIterator = $spreadsheet_iterator;
}