diff --git a/core/modules/field/migrations/d7_field_instance.yml b/core/modules/field/migrations/d7_field_instance.yml index 28a798dabf..6bbdcd1817 100644 --- a/core/modules/field/migrations/d7_field_instance.yml +++ b/core/modules/field/migrations/d7_field_instance.yml @@ -39,12 +39,14 @@ process: migration: d7_taxonomy_vocabulary source: vid widget_with_fallback: + # @TODO: add the same mapping as d7_field_instance_widget_settings has. - plugin: get source: 'widget/type' - plugin: field_widget_fallback field_type: type + skip_message: true settings: - plugin: d7_field_instance_settings diff --git a/core/modules/field/src/Plugin/migrate/process/FieldWidgetFallback.php b/core/modules/field/src/Plugin/migrate/process/FieldWidgetFallback.php index 8453da7a14..9557fdbdc2 100644 --- a/core/modules/field/src/Plugin/migrate/process/FieldWidgetFallback.php +++ b/core/modules/field/src/Plugin/migrate/process/FieldWidgetFallback.php @@ -95,8 +95,11 @@ public function transform($value, MigrateExecutableInterface $migrate_executable $field_type_definition = $this->fieldTypeManager->getDefinition($field_type); $fallback = $field_type_definition['default_widget']; - $message = sprintf('The field widget plugin id %s (used on field type %s) could not be mapped to an existing widget plugin; defaulting to %s and dropping all widget settings. Either redo the migration with the module installed that provides an equivalent plugin, or modify the entity form display after the migration and manually choose the right field widget.', $value, $field_type, $fallback); - $migrate_executable->saveMessage($message, MigrationInterface::MESSAGE_NOTICE); + if (!isset($this->configuration['skip_message']) || empty($this->configuration['skip_message'])) { + xdebug_break(); + $message = sprintf('The field widget plugin id %s (used on field type %s) could not be mapped to an existing widget plugin; defaulting to %s and dropping all widget settings. Either redo the migration with the module installed that provides an equivalent plugin, or modify the entity form display after the migration and manually choose the right field widget.', $value, $field_type, $fallback); + $migrate_executable->saveMessage($message, MigrationInterface::MESSAGE_NOTICE); + } return $fallback; }