Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
link-migrate_subfields.patch | 1.49 KB | mikeryan | |
Comments
Comment #1
becw CreditAttribution: becw commentedI 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.
Comment #2
vlad.dancer+1 RTBC for this pach!!! Thx a lot for this patch, also i had made patch for money field in this way.
Comment #3
rupertj CreditAttribution: rupertj commentedThis patch is really useful and works well. Please commit it.
Comment #4
mikeryanNote 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.
Comment #5
jcfiala CreditAttribution: jcfiala commentedSince I've merged in #1010850: Update MigrateFieldHandler to work with migrate-7.x-2.4 and later, this should be fixed now.