Skip to content

Commit

Permalink
Allow migrate:import's --delete option to function
Browse files Browse the repository at this point in the history
Dispatch the event name onMissingSourceRows is listening for.

drush-opsgh-5062
  • Loading branch information
chrisolof committed Feb 3, 2022
1 parent a2db1ee commit 27e9bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drupal/Migrate/MigrateExecutable.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ protected function handleMissingSourceRows(MigrationInterface $migration): void

if ($destinationIds) {
$missingSourceEvent = new MigrateMissingSourceRowsEvent($migration, $destinationIds);
$this->getEventDispatcher()->dispatch($missingSourceEvent);
$this->getEventDispatcher()->dispatch($missingSourceEvent, MigrateMissingSourceRowsEvent::class);
}
}

Expand Down

0 comments on commit 27e9bb0

Please sign in to comment.