function FieldMigration::__construct

Same name in other branches
  1. 9 core/modules/migrate_drupal/src/Plugin/migrate/FieldMigration.php \Drupal\migrate_drupal\Plugin\migrate\FieldMigration::__construct()
  2. 8.9.x core/modules/migrate_drupal/src/Plugin/migrate/FieldMigration.php \Drupal\migrate_drupal\Plugin\migrate\FieldMigration::__construct()
  3. 10 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 $id_map_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 $id_map_plugin_manager, FieldDiscoveryInterface $field_discovery) {
    parent::__construct($configuration, $plugin_id, $plugin_definition, $migration_plugin_manager, $source_plugin_manager, $process_plugin_manager, $destination_plugin_manager, $id_map_plugin_manager);
    $this->fieldDiscovery = $field_discovery;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.