function Migration::getIdMap

Same name in other branches
  1. 9 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getIdMap()
  2. 8.9.x core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getIdMap()
  3. 10 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getIdMap()

Overrides MigrationInterface::getIdMap

File

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

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.