My source data contains text with inline links that point to unique ids in the source data.

Currently I'm processing the nodes after the migration has finished and manually looking in the migration mapping tables for the source to destination ids, but I imagine that I could someone use the stub nodes and SourceMigration concept to update the links immediately on import.

Can I?

Comments

mikeryan’s picture

Status: Active » Postponed (maintainer needs more info)

You can do it in prepareRow() with handleSourceMigration:

$destination_nid = $this->handleSourceMigration('SourceMigration', $row->source_nid);
Letharion’s picture

Category: support » task
Status: Postponed (maintainer needs more info) » Active

Thank you mikeryan!

I updated the docs about stubs. please review it. Link to revision diff

mikeryan’s picture

Status: Active » Fixed

Did a bit of editing, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.