You are here

d7_field_instance_widget_insert_settings.yml in Insert 8.2

migrations/d7_field_instance_widget_insert_settings.yml

File

migrations/d7_field_instance_widget_insert_settings.yml
View source
  1. # This file basically is a copy of d7_field_instance_widget_settings.yml with
  2. # unnecessary parts removed and third_party_settings getting filled with Insert
  3. # settings.
  4. id: d7_field_instance_widget_insert_settings
  5. label: Field instance widget Insert configuration
  6. migration_tags:
  7. - Drupal 7
  8. - Configuration
  9. source:
  10. plugin: d7_field_instance_per_form_display
  11. constants:
  12. form_mode: default
  13. source_module: insert
  14. process:
  15. field_type_exists:
  16. -
  17. plugin: migration_lookup
  18. migration: d7_field
  19. source:
  20. - field_name
  21. - entity_type
  22. -
  23. plugin: extract
  24. index:
  25. - 0
  26. -
  27. plugin: skip_on_empty
  28. method: row
  29. bundle:
  30. plugin: static_map
  31. source: bundle
  32. bypass: true
  33. map:
  34. comment_node_forum: comment_forum
  35. form_mode: 'constants/form_mode'
  36. field_name: field_name
  37. entity_type: entity_type
  38. 'options/third_party_settings':
  39. plugin: field_instance_widget_insert_settings
  40. source: 'widget/settings'
  41. destination:
  42. plugin: component_entity_form_display_insert
  43. migration_dependencies:
  44. required:
  45. - d7_field_instance