You are here

protected function Migration::getProcessNormalized in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/src/Entity/Migration.php \Drupal\migrate\Entity\Migration::getProcessNormalized()

Resolve shorthands into a list of plugin configurations.

Parameters

array $process: A process configuration array.

Return value

array The normalized process configuration.

3 calls to Migration::getProcessNormalized()
Migration::getProcess in core/modules/migrate/src/Entity/Migration.php
Get the normalized process pipeline configuration describing the process plugins.
Migration::getProcessPlugins in core/modules/migrate/src/Entity/Migration.php
Returns the process plugins.
Migration::mergeProcessOfProperty in core/modules/migrate/src/Entity/Migration.php
Merge the process pipeline configuration for a single property.

File

core/modules/migrate/src/Entity/Migration.php, line 302
Contains \Drupal\migrate\Entity\Migration.

Class

Migration
Defines the Migration entity.

Namespace

Drupal\migrate\Entity

Code

protected function getProcessNormalized(array $process) {
  $normalized_configurations = array();
  foreach ($process as $destination => $configuration) {
    if (is_string($configuration)) {
      $configuration = array(
        'plugin' => 'get',
        'source' => $configuration,
      );
    }
    if (isset($configuration['plugin'])) {
      $configuration = array(
        $configuration,
      );
    }
    $normalized_configurations[$destination] = $configuration;
  }
  return $normalized_configurations;
}