Skip to content
Snippets Groups Projects

Issue #3469900: Added hook_module_implements_alter to force migrate_plus hook to execute first.

Open Issue #3469900: Added hook_module_implements_alter to force migrate_plus hook to execute first.
1 file
+ 12
0
Compare changes
  • Side-by-side
  • Inline
+ 12
0
@@ -87,3 +87,15 @@ function migrate_plus_migration_plugins_alter(array &$migrations): void {
function migrate_plus_migrate_prepare_row(Row $row, MigrateSourceInterface $source, MigrationInterface $migration): void {
\Drupal::service('event_dispatcher')->dispatch(new MigratePrepareRowEvent($row, $source, $migration), MigrateEvents::PREPARE_ROW);
}
/**
* Implements hook_module_implements_alter().
*/
function migrate_plus_module_implements_alter(&$implementations, $hook) {
switch ($hook) {
case 'migration_plugins_alter':
unset($implementations['migrate_plus']);
$implementations = array_merge(['migrate_plus' => false], $implementations);
break;
}
}
Loading