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.
\Drupal\migrate\Plugin\migrate\source\SourcePluginBase::prepareRow()
invokes two Migrate hooks, but instead of providing the hook arguments as an array, it passes on objects. This came to light when testing #1972304-51: Add a HookEvent.
This issue blocks
Comment | File | Size | Author |
---|---|---|---|
#1 | drupal_2170989_1.patch | 1005 bytes | Xano |
Comments
Comment #1
XanoComment #2
XanoWe may not need tests for this if #2170991: Migrate provides invalid arguments when invoking hooks/type hint array arguments in ModuleHandlerInterface gets fixed.
Comment #3
chx CreditAttribution: chx commentedCommitted, thanks!
Comment #4
chx CreditAttribution: chx commentedOK so this needs to go into core as well.
Comment #5
XanoComment #6
andypostSuppose this hooks are not covered with tests at all
Comment #7
XanoLet's combine this with #2170991: Migrate provides invalid arguments when invoking hooks/type hint array arguments in ModuleHandlerInterface.