Convert remaining widget and formatter type migrations to MigrateField plugins

Created on 18 March 2021, almost 4 years ago
Updated 5 March 2024, 10 months ago

Problem/Motivation

The field migration plugin system hard-codes some plugin ID mapping in field migrations while an equivalent (and more maintainable) plugin system exists for the same reason.

This blocks ✨ [PP-1] Provide option for contrib modules to map their D6 / D7 field formatter and widget plugin IDs to the equivalent D9 plugin ID Postponed and I also think it is only a leftover of times before the field migration plugin system.

Proposed resolution

Move the formatter and widget type mappings from the core formatter and widget migration plugin definitions into the corresponding @MigrateField plugin.

  • d6_field_instance_widget_settings
  • d7_field_instance_widget_settings
  • d6_field_formatter_settings

(The d6_field_formatter_settings migration does not contain hard-coded mapping.)

Retain the static maps in the d6 migrations to maintain BC.

Remaining tasks

  1. Make sure that the review in Comment #35 is addressed.
  2. Fix failing tests.

User interface changes

Nothing.

API changes

Nothing.

Data model changes

Nothing.

Release notes snippet

πŸ“Œ Task
Status

Needs work

Version

11.0 πŸ”₯

Component
MigrationΒ  β†’

Last updated 3 days ago

Created by

πŸ‡­πŸ‡ΊHungary huzooka Hungary πŸ‡­πŸ‡ΊπŸ‡ͺπŸ‡Ί

Live updates comments and jobs are added and updated live.
  • Needs subsystem maintainer review

    It is used to alert the maintainer(s) of a particular core subsystem that an issue significantly impacts their subsystem, and their signoff is needed (see the governance policy draft for more information). Also, if you use this tag, make sure the issue component is set to the correct subsystem. If an issue significantly impacts more than one subsystem, use needs framework manager review instead.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024