You are here

protected function Iterator::transformKey in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/src/Plugin/migrate/process/Iterator.php \Drupal\migrate\Plugin\migrate\process\Iterator::transformKey()

Runs the process pipeline for the current key.

Parameters

string|int $key: The current key.

\Drupal\migrate\MigrateExecutableInterface $migrate_executable: The migrate executable helper class.

\Drupal\migrate\Row $row: The current row after processing.

Return value

mixed The transformed key.

1 call to Iterator::transformKey()
Iterator::transform in core/modules/migrate/src/Plugin/migrate/process/Iterator.php
Runs a process pipeline on each destination property per list item.

File

core/modules/migrate/src/Plugin/migrate/process/Iterator.php, line 56
Contains \Drupal\migrate\Plugin\migrate\process\Iterator.

Class

Iterator
This plugin iterates and processes an array.

Namespace

Drupal\migrate\Plugin\migrate\process

Code

protected function transformKey($key, MigrateExecutableInterface $migrate_executable, Row $row) {
  $process = array(
    'key' => $this->configuration['key'],
  );
  $migrate_executable
    ->processRow($row, $process, $key);
  return $row
    ->getDestinationProperty('key');
}