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.
MigrateDestinationFieldCollection::fields() ignores passed in migration object parameter thus loosing valuable information and not allowing migrate_handler_invoke_all() to use this information as well.
My issue use case is simple: I'm migration field collections with attached file fields. Specifying source migration for this field should pull some configuration options(like destination_dir, destination_file, file_replace, source_dir, urlencode) from source migration itself which is not happening.
Patch will follow.
Comment | File | Size | Author |
---|---|---|---|
#2 | field_collection-2638972-2.patch | 995 bytes | RoSk0 |
Comments
Comment #2
RoSk0Patch to fix issue.
Comment #3
GoldThis is working for me when applied to beta11.
Comment #4
GoldThis is working for me when applied to beta11.
Comment #5
jmuzz CreditAttribution: jmuzz commentedThat's a good point, but it's good courtesy to keep patches to the point and avoid making unrelated changes to the documentation / white space. For this case in particular, it would inherit the documentation for the abstract function that starts with "Derived classes must implement fields()" so it's better to override the docblock.