d6_field_instance_widget_settings.yml

Same filename in other branches
  1. 9 core/modules/field/migrations/d6_field_instance_widget_settings.yml
  2. 8.9.x core/modules/field/migrations/d6_field_instance_widget_settings.yml
  3. 10 core/modules/field/migrations/d6_field_instance_widget_settings.yml
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 nodereference onoff userreference
  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_url: entity_reference_autocomplete
  61. nodereference_buttons: options_buttons
  62. nodereference_autocomplete: entity_reference_autocomplete_tags
  63. userreference_select: options_select
  64. 'options/settings':
  65. -
  66. plugin: field_instance_widget_settings
  67. source:
  68. - widget_type
  69. - widget_settings
  70. 'options/third_party_settings': 'constants/third_party_settings'
  71. destination:
  72. plugin: component_entity_form_display
  73. migration_dependencies:
  74. required:
  75. - d6_field_instance

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.