You are here

public function MigrateExecutable::processRow in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/MigrateExecutable.php \Drupal\migrate\MigrateExecutable::processRow()
  2. 9 core/modules/migrate/src/MigrateExecutable.php \Drupal\migrate\MigrateExecutable::processRow()

Processes a row.

Parameters

\Drupal\migrate\Row $row: The $row to be processed.

array $process: (optional) A process pipeline configuration. If not set, the top level process configuration in the migration entity is used.

mixed $value: (optional) Initial value of the pipeline for the first destination. Usually setting this is not necessary as $process typically starts with a 'get'. This is useful only when the $process contains a single destination and needs to access a value outside of the source. See \Drupal\migrate\Plugin\migrate\process\SubProcess::transformKey for an example.

Throws

\Drupal\migrate\MigrateException

Overrides MigrateExecutableInterface::processRow

File

core/modules/migrate/src/MigrateExecutable.php, line 390

Class

MigrateExecutable
Defines a migrate executable class.

Namespace

Drupal\migrate

Code

public function processRow(Row $row, array $process = NULL, $value = NULL) {
  foreach ($this->migration
    ->getProcessPlugins($process) as $destination => $plugins) {
    $this
      ->processPipeline($row, $destination, $plugins, $value);
  }
}