diff --git a/core/modules/migrate_drupal_ui/src/Form/MigrateUpgradeForm.php b/core/modules/migrate_drupal_ui/src/Form/MigrateUpgradeForm.php index 1023409971..56f48f7bbc 100644 --- a/core/modules/migrate_drupal_ui/src/Form/MigrateUpgradeForm.php +++ b/core/modules/migrate_drupal_ui/src/Form/MigrateUpgradeForm.php @@ -49,6 +49,28 @@ class MigrateUpgradeForm extends ConfirmFormBase { protected $pluginManager; /** + * Drupal 6 modules that do no need an upgrade path. + */ + protected static $d6_no_upgrade_path = [ + 'date_api', + 'help', + 'imageapi', + 'php', + 'views', + ]; + + /** + * Drupal 7 modules that do no need an upgrade path. + */ + protected static $d7_no_upgrade_path = [ + 'date_api', + 'field_ui', + 'help', + 'php', + 'overlay', + ]; + + /** * Constructs the MigrateUpgradeForm. * * @param \Drupal\Core\State\StateInterface $state @@ -483,6 +505,12 @@ public function buildConfirmForm(array $form, FormStateInterface $form_state) { // Fetch the system data at the first opportunity. $system_data = $form_state->get('system_data'); + // Remove modules that do not need an upgrade path. + $no_upgrade_path = ($version == '6') ? static::$d6_no_upgrade_path : static::$d7_no_upgrade_path; + $no_upgrade_path = array_flip($no_upgrade_path); + $system_data['module'] = array_diff_key($system_data['module'], $no_upgrade_path); + + // Remove modules that do have an upgrade path. $unmigrated_source_modules = array_diff_key($system_data['module'], $table_data); // Missing migrations.