Skip to content
Snippets Groups Projects
Commit f7c7bdff authored by Lucas Hedding's avatar Lucas Hedding Committed by Lucas Hedding
Browse files

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

parent 8f6fd2a7
No related branches found
Tags 11-137198
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