diff --git a/core/modules/migrate_drupal_ui/src/Form/MigrateUpgradeForm.php b/core/modules/migrate_drupal_ui/src/Form/MigrateUpgradeForm.php index f238504495..7f5dae39f8 100644 --- a/core/modules/migrate_drupal_ui/src/Form/MigrateUpgradeForm.php +++ b/core/modules/migrate_drupal_ui/src/Form/MigrateUpgradeForm.php @@ -67,6 +67,36 @@ class MigrateUpgradeForm extends ConfirmFormBase { protected $moduleHandler; /** + * Drupal 6 modules that do no need an upgrade path. + */ + protected static $d6_no_upgrade_path = [ + 'date_api', + 'help', + 'imageapi', + 'nodereference', + 'php', + 'userreference', + 'variable_admin', + 'views', + ]; + + /** + * Drupal 7 modules that do no need an upgrade path. + */ + protected static $d7_no_upgrade_path = [ + 'blog', + 'contextual', + 'date_api', + 'entity', + 'field_ui', + 'help', + 'overlay', + 'php', + 'toolbar', + 'trigger', + ]; + + /** * Constructs the MigrateUpgradeForm. * * @param \Drupal\Core\State\StateInterface $state @@ -513,6 +543,13 @@ public function buildConfirmForm(array $form, FormStateInterface $form_state) { $table_data[$source_module][$destination_module][$definition['id']] = $definition['id']; } + // Add source_module and destination_module for modules that do not need an + // upgrade path. + $no_upgrade_path = ($version == '6') ? static::$d6_no_upgrade_path : static::$d7_no_upgrade_path; + foreach ($no_upgrade_path as $module) { + $table_data[$module]['core'][$module] = $module; + } + // Sort the table by source module names and within that destination // module names. ksort($table_data);