You are here

d6_field_instance_widget_settings.yml in Drupal 10

core/modules/field/migrations/d6_field_instance_widget_settings.yml

File

core/modules/field/migrations/d6_field_instance_widget_settings.yml
View source
  1. # cspell:ignore imagefield optionwidgets
  2. id: d6_field_instance_widget_settings
  3. label: Field instance widget configuration
  4. migration_tags:
  5. - Drupal 6
  6. - Configuration
  7. class: Drupal\migrate_drupal\Plugin\migrate\FieldMigration
  8. field_plugin_method: alterFieldWidgetMigration
  9. source:
  10. plugin: d6_field_instance_per_form_display
  11. constants:
  12. entity_type: node
  13. form_mode: default
  14. third_party_settings: { }
  15. process:
  16. # We skip field types that don't exist because they weren't migrated by the
  17. # field migration.
  18. field_type_exists:
  19. -
  20. plugin: migration_lookup
  21. migration: d6_field
  22. source:
  23. - field_name
  24. -
  25. plugin: extract
  26. index:
  27. - 1
  28. -
  29. plugin: skip_on_empty
  30. method: row
  31. bundle:
  32. -
  33. plugin: migration_lookup
  34. migration: d6_node_type
  35. source: type_name
  36. -
  37. plugin: skip_on_empty
  38. method: row
  39. form_mode: 'constants/form_mode'
  40. field_name: field_name
  41. entity_type: 'constants/entity_type'
  42. 'options/weight': weight
  43. 'options/type':
  44. type:
  45. plugin: static_map
  46. bypass: true
  47. source: widget_type
  48. map:
  49. number: number
  50. email_textfield: email_default
  51. date_select: datetime_default
  52. date_text: datetime_default
  53. date_popup: datetime_default
  54. imagefield_widget: image_image
  55. phone_textfield: telephone_default
  56. optionwidgets_onoff: boolean_checkbox
  57. optionwidgets_buttons: options_buttons
  58. optionwidgets_select: options_select
  59. nodereference_select: options_select
  60. nodereference_buttons: options_buttons
  61. nodereference_autocomplete: entity_reference_autocomplete_tags
  62. userreference_select: options_select
  63. 'options/settings':
  64. -
  65. plugin: field_instance_widget_settings
  66. source:
  67. - widget_type
  68. - widget_settings
  69. 'options/third_party_settings': 'constants/third_party_settings'
  70. destination:
  71. plugin: component_entity_form_display
  72. migration_dependencies:
  73. required:
  74. - d6_field_instance