You are here

public function Migration::getIdMap in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getIdMap()
  2. 9 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getIdMap()

Returns the initialized id_map plugin.

Return value

\Drupal\migrate\Plugin\MigrateIdMapInterface The ID map.

Overrides MigrationInterface::getIdMap

1 call to Migration::getIdMap()
Migration::allRowsProcessed in core/modules/migrate/src/Plugin/Migration.php
Check if all source rows from this migration have been processed.

File

core/modules/migrate/src/Plugin/Migration.php, line 488

Class

Migration
Defines the Migration plugin.

Namespace

Drupal\migrate\Plugin

Code

public function getIdMap() {
  if (!isset($this->idMapPlugin)) {
    $configuration = $this->idMap;
    $plugin = $configuration['plugin'] ?? 'sql';
    $this->idMapPlugin = $this->idMapPluginManager
      ->createInstance($plugin, $configuration, $this);
  }
  return $this->idMapPlugin;
}