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.
Problem/Motivation
I would like to be able to pass null elements to $value
Steps to reproduce
Load an array containing a NULL element in $value
Proposed resolution
Pass the array through array_filter before merging
Remaining tasks
Community review
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#2 | 3257068-migrate_plus-filter-array-before-merge.patch | 573 bytes | B2F |
Comments
Comment #2
B2F CreditAttribution: B2F at Axess Open Web Services commentedComment #3
heddnThere's a callback process plugin. Couldn't you build a pipeline and use it to call array_filter?
Comment #4
B2F CreditAttribution: B2F at Axess Open Web Services commentedHow should I pass two sources as a single array to the first parameter of a migrate callback plugin ?