Skip to content
Snippets Groups Projects
Unverified Commit 80e6c25f authored by Lucas Hedding's avatar Lucas Hedding
Browse files

Fixes #259 by inverting the order of arguments to the event dispatcher

parent 0a1f9752
No related branches found
No related tags found
No related merge requests found
...@@ -83,5 +83,5 @@ function migrate_plus_migration_plugins_alter(array &$migrations) { ...@@ -83,5 +83,5 @@ function migrate_plus_migration_plugins_alter(array &$migrations) {
* Implements hook_migrate_prepare_row(). * Implements hook_migrate_prepare_row().
*/ */
function migrate_plus_migrate_prepare_row(Row $row, MigrateSourceInterface $source, MigrationInterface $migration) { function migrate_plus_migrate_prepare_row(Row $row, MigrateSourceInterface $source, MigrationInterface $migration) {
\Drupal::service('event_dispatcher')->dispatch(MigrateEvents::PREPARE_ROW, new MigratePrepareRowEvent($row, $source, $migration)); \Drupal::service('event_dispatcher')->dispatch(new MigratePrepareRowEvent($row, $source, $migration), MigrateEvents::PREPARE_ROW);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment