If in hook_migrate_api() you define "disable_hooks" for both a migration as well as its group, the group definition is ignored.
The documentation of hook_migrate_api() reads for the "groups" definition:
"groups": An associative array, keyed by group machine name, defining one or more migration groups. Each value is an associative array - the 'title' key defines a user-visible name for the group; any other values are passed as arguments to all migrations in the group.
I would expect that I can define some general hooks to disable for all migrations in a group and add migration-specific ones to migrations where needed.
Comment | File | Size | Author |
---|---|---|---|
#2 | migrate-keep_disabled_hooks_for_group-3114144-2.patch | 890 bytes | Ronino |
|
Comments
Comment #2
Ronino CreditAttribution: Ronino as a volunteer commentedThis patch merges "disable_hooks" if they are given for both a migration's group as well as the migration itself. The reason group settings are ignored is the way group arguments are added to migration arguments.