d6_field_instance_widget_settings.yml

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

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