function MigrateExecutable::processRow

Same name and namespace in other branches
  1. 8.9.x core/modules/migrate/src/MigrateExecutable.php \Drupal\migrate\MigrateExecutable::processRow()
  2. 10 core/modules/migrate/src/MigrateExecutable.php \Drupal\migrate\MigrateExecutable::processRow()
  3. 11.x 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.

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);
    }
}

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