You are here

public function ProcessField::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/field/src/Plugin/migrate/process/ProcessField.php \Drupal\field\Plugin\migrate\process\ProcessField::__construct()
  2. 9 core/modules/field/src/Plugin/migrate/process/ProcessField.php \Drupal\field\Plugin\migrate\process\ProcessField::__construct()

Constructs a ProcessField plugin.

Parameters

array $configuration: The plugin configuration.

string $plugin_id: The plugin ID.

mixed $plugin_definition: The plugin definition.

\Drupal\migrate_drupal\Plugin\MigrateFieldPluginManagerInterface $field_plugin_manager: The field plugin manager.

\Drupal\migrate\Plugin\MigrationInterface $migration: The migration being run.

Overrides PluginBase::__construct

File

core/modules/field/src/Plugin/migrate/process/ProcessField.php, line 74

Class

ProcessField
Get the value from a method call on a field plugin instance.

Namespace

Drupal\field\Plugin\migrate\process

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrateFieldPluginManagerInterface $field_plugin_manager, MigrationInterface $migration = NULL) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->fieldPluginManager = $field_plugin_manager;
  $this->migration = $migration;
}