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.
Updates to the Migrate API (in v 7.x.2.5 I believe) force you to declare the migration field class.
Patch coming.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2155749-migrate-name.patch | 334 bytes | agentrickard |
Comments
Comment #1
agentrickardSimple patch.
Comment #2
Dave ReidCould the name field type get away with not even having a field handler defined now that Migrate attempts to provide handlers for all field types that don't have a specific handler?
Comment #3
Alan D. CreditAttribution: Alan D. commentedAlso #1468010: Name field support, from migrate extras, so should this be dropped altogether from the name module?
Related #1734922: Name Field Migrate support with import example (single full name text field separated and split into the individual components)
Comment #4
agentrickardI would prefer having it here, personally. It's part of the field definition. Pushing it to Migrate Extra seems odd to me.
Comment #5
agentrickardIt matter little to me. I was able to register the class in my custom migration module.
@Dave Reid
I don't think the generic handler will help, since the array structure needs to be set. I needed this handler.
Comment #6
Dane Powell CreditAttribution: Dane Powell commentedThis patch is required by #2221717: Improve and de-dupe migrate handler.
The default migrate field handler doesn't adequately handle name fields. The version in Migrate Extras works okay, but best practices is to provide this handler with the parent module, hence the need for #2221717: Improve and de-dupe migrate handler.
Comment #7
Dane Powell CreditAttribution: Dane Powell commentedActually, because the class name changes in that issue, we should just fix this there.
Comment #8
Alan D. CreditAttribution: Alan D. commented@Dane Powell
The other is rtbtc, but not reviewing these in detail again. So flagging as a duplicate and closing, but reopen if there are followups required. Cheers