public function Migration::getIdMap in Drupal 8
Same name and namespace in other branches
- 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
File
- core/
modules/ migrate/ src/ Plugin/ Migration.php, line 433
Class
- Migration
- Defines the Migration plugin.
Namespace
Drupal\migrate\PluginCode
public function getIdMap() {
if (!isset($this->idMapPlugin)) {
$configuration = $this->idMap;
$plugin = isset($configuration['plugin']) ? $configuration['plugin'] : 'sql';
$this->idMapPlugin = $this->idMapPluginManager
->createInstance($plugin, $configuration, $this);
}
return $this->idMapPlugin;
}