function Migration::getIdMap
Returns the initialized id_map plugin.
Return value
\Drupal\migrate\Plugin\MigrateIdMapInterface The ID map.
Overrides MigrationInterface::getIdMap
File
- 
              core/
modules/ migrate/ src/ Plugin/ Migration.php, line 488  
Class
- Migration
 - Defines the Migration plugin.
 
Namespace
Drupal\migrate\PluginCode
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.