As of Migrate 2.4, subfields can be mapped directly (none of the awkward argument array/source_field stuff). The attached patch adds the fields() method to expose these subfields in the Migrate UI, as well as documentation on how to map the fields both pre- and post-2.4.

CommentFileSizeAuthor
link-migrate_subfields.patch1.49 KBmikeryan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

becw’s picture

Status: Needs review » Reviewed & tested by the community

I found this patch while trying to figure out how to pass other row field values as arguments. The patch applies cleanly to the latest -dev and provides very helpful clues on how to use Link's migrate class.

vlad.dancer’s picture

+1 RTBC for this pach!!! Thx a lot for this patch, also i had made patch for money field in this way.

rupertj’s picture

This patch is really useful and works well. Please commit it.

mikeryan’s picture

Note that I've posted a consolidated patch in #1010850: Update MigrateFieldHandler to work with migrate-7.x-2.4 and later that would supercede this.

jcfiala’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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