Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
migration system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2014 at 08:36 UTC
Updated:
29 Jan 2015 at 10:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
chx commentedI am against this change. Contrib can use the existing hook_migrate_load to change the migration entity after it is loaded. That's what we bet the farm on for every migration, dynamic or static. There's no need to further plugin-ify this.
Comment #2
benjy commentedPostponing this for now on #2394567: File field need associated metadata during cck_field migration and #2394571: Filter formats on cck text fields are not looked up in the idMap They don't technically block this, but they're both quite important and this issue is likely to just be a bit of a clean-up.
Comment #3
benjy commentedWe've discussed that having another plugin system for per field type processing is probably un-needed overkill. It's only really useful in core for cck fields and contrib can use the entity hooks to manipulate the process array.
So, attached patch is simply a small proposed clean-up, moving the processing into their own methods.
Comment #4
chx commentedI think a switch would be even cleaner than a chain of if-elseif
Comment #5
benjy commentedSure.
Comment #6
chx commentedNice.
Comment #7
alexpottMigrate changes are not frozen in beta. Committed cb3eb2f and pushed to 8.0.x. Thanks!