public function FileEntityItem::__construct in Media Migration 8
Constructs a FileEntityItem instance.
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\State\StateInterface $state: The state service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\media_migration\FileEntityDealerManagerInterface $file_entity_dealer_manager: The file entity dealer plugin manager.
Overrides DrupalSqlBase::__construct
File
- src/
Plugin/ migrate/ source/ d7/ FileEntityItem.php, line 54
Class
- FileEntityItem
- File Entity Item source plugin.
Namespace
Drupal\media_migration\Plugin\migrate\source\d7Code
public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, StateInterface $state, EntityTypeManagerInterface $entity_type_manager, FileEntityDealerManagerInterface $file_entity_dealer_manager) {
$configuration += [
'type' => NULL,
'scheme' => $configuration['uri_prefix'] ?? NULL,
];
parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $state, $entity_type_manager);
$this->fileEntityDealerManager = $file_entity_dealer_manager;
}