You are here

public function FieldMigration::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/migrate_drupal/src/Plugin/migrate/FieldMigration.php \Drupal\migrate_drupal\Plugin\migrate\FieldMigration::__construct()

Constructs a FieldMigration.

Parameters

array $configuration: Plugin configuration.

string $plugin_id: The plugin ID.

mixed $plugin_definition: The plugin definition.

\Drupal\migrate\Plugin\MigrationPluginManagerInterface $migration_plugin_manager: The migration plugin manager.

\Drupal\migrate\Plugin\MigratePluginManager $source_plugin_manager: The source migration plugin manager.

\Drupal\migrate\Plugin\MigratePluginManager $process_plugin_manager: The process migration plugin manager.

\Drupal\migrate\Plugin\MigrateDestinationPluginManager $destination_plugin_manager: The destination migration plugin manager.

\Drupal\migrate\Plugin\MigratePluginManager $idmap_plugin_manager: The ID map migration plugin manager.

\Drupal\migrate_drupal\FieldDiscoveryInterface $field_discovery: The migration field discovery service.

Overrides Migration::__construct

File

core/modules/migrate_drupal/src/Plugin/migrate/FieldMigration.php, line 54

Class

FieldMigration
Migration plugin class for migrations dealing with field config and values.

Namespace

Drupal\migrate_drupal\Plugin\migrate

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationPluginManagerInterface $migration_plugin_manager, MigratePluginManager $source_plugin_manager, MigratePluginManager $process_plugin_manager, MigrateDestinationPluginManager $destination_plugin_manager, MigratePluginManager $idmap_plugin_manager, FieldDiscoveryInterface $field_discovery) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $migration_plugin_manager, $source_plugin_manager, $process_plugin_manager, $destination_plugin_manager, $idmap_plugin_manager);
  $this->fieldDiscovery = $field_discovery;
}