Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By heddn on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.4.x
Introduced in version:
8.4.0
Issue links:
Description:
Previously the generated templates for field_instance, field_instance_widget_settings & field_formatter_settings migrations used different keys. With changes in the FieldInstance source plugin, those key names are now different.
Before (8.3.x):
# d7_field_instance.yml
process:
settings:
plugin: d7_field_instance_settings
source:
- instance_settings
- widget_settings
- field_settings
default_value:
plugin: d7_field_instance_defaults
source:
- default_value
- widget_settings
# d7_field_instance_widget_settings.yml
process:
'options/settings':
plugin: field_instance_widget_settings
source:
- 'widget/type'
- widget_settings
# d7_field_formatter_settings.yml
process:
"options/label": label
"options/weight": weight
"options/type":
-
plugin: static_map
source: formatter_type
...
"options/settings":
plugin: default_value
source: settings
...
After (8.4.x)
# d7_field_instance.yml
process:
settings:
plugin: d7_field_instance_settings
source:
- settings
- widget
- field_definition
default_value:
plugin: d7_field_instance_defaults
source:
- default_value
- widget
# d7_field_instance_widget_settings.yml
process:
'options/settings':
plugin: field_instance_widget_settings
source:
- 'widget/type'
- 'widget/settings'
# d7_field_formatter_settings.yml
process:
"options/label": 'formatter/label'
"options/weight": 'formatter/weight'
"options/type":
-
plugin: static_map
source: 'formatter/type'
...
"options/settings":
plugin: default_value
source: 'formatter/settings'
...