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.
While using the FieldCollectionItem.php migrate source plugin, I noticed that a hook_migrate_prepare_row() implementation was invoked before the prepareRow() method in the source plugin. As a result, the hook implementation does not have access to field_collection fields.
Comment | File | Size | Author |
---|---|---|---|
#2 | fieldcollectionitem-preparerow-3016757-2.patch | 906 bytes | weekbeforenext |
|
Comments
Comment #2
weekbeforenextAttached is a patch that moves parent::prepareRow($row) to the bottom of the FieldCollectionItem.php migrate source plugin and allows the method to run before the hook_migrate_prepare_row() is invoked.
Comment #3
marcoscanoThat makes sense to me.
We appear to not have test coverage for that currently, but I wonder if it's a too specific scenario to warrant a test.
Comment #5
BerdirThanks, committed.