Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SubProcess.php

function SubProcess::transformKey

Runs the process pipeline for the key to determine its dynamic name.

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 SubProcess::transformKey()
SubProcess::transform in core/modules/migrate/src/Plugin/migrate/process/SubProcess.php
Performs the associated process.

File

core/modules/migrate/src/Plugin/migrate/process/SubProcess.php, line 246

Class

SubProcess
Runs an array of arrays through its own process pipeline.

Namespace

Drupal\migrate\Plugin\migrate\process

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal