function Migration::getProcessNormalized
Same name in other branches
- 9 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getProcessNormalized()
- 8.9.x core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getProcessNormalized()
- 10 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getProcessNormalized()
Resolve shorthands into a list of plugin configurations.
Parameters
array $process: A process configuration array.
Return value
array The normalized process configuration.
4 calls to Migration::getProcessNormalized()
- Migration::findMigrationDependencies in core/
modules/ migrate/ src/ Plugin/ Migration.php - Find migration dependencies from migration_lookup and sub_process plugins.
- Migration::getProcess in core/
modules/ migrate/ src/ Plugin/ Migration.php - Gets the normalized process plugin configuration.
- Migration::getProcessPlugins in core/
modules/ migrate/ src/ Plugin/ Migration.php - Returns the process plugins.
- Migration::mergeProcessOfProperty in core/
modules/ migrate/ src/ Plugin/ Migration.php - Merge the process pipeline configuration for a single property.
File
-
core/
modules/ migrate/ src/ Plugin/ Migration.php, line 420
Class
- Migration
- Defines the Migration plugin.
Namespace
Drupal\migrate\PluginCode
protected function getProcessNormalized(array $process) {
$normalized_configurations = [];
foreach ($process as $destination => $configuration) {
if (is_string($configuration)) {
$configuration = [
'plugin' => 'get',
'source' => $configuration,
];
}
if (isset($configuration['plugin'])) {
$configuration = [
$configuration,
];
}
if (!is_array($configuration)) {
$migration_id = $this->getPluginId();
throw new MigrateException("Invalid process for destination '{$destination}' in migration '{$migration_id}'");
}
$normalized_configurations[$destination] = $configuration;
}
return $normalized_configurations;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.