You are here

d7_field_formatter_settings.yml in Zircon Profile 8

core/modules/field/migration_templates/d7_field_formatter_settings.yml

File

core/modules/field/migration_templates/d7_field_formatter_settings.yml
View source
  1. id: d7_field_formatter_settings
  2. label: Field formatter configuration
  3. migration_tags:
  4. - Drupal 7
  5. source:
  6. plugin: d7_field_instance_per_view_mode
  7. constants:
  8. third_party_settings: { }
  9. process:
  10. # We skip field types that don't exist because they weren't migrated by the
  11. # field migration.
  12. field_type_exists:
  13. -
  14. plugin: migration
  15. migration: d7_field
  16. source:
  17. - field_name
  18. - entity_type
  19. -
  20. plugin: extract
  21. index:
  22. - 0
  23. -
  24. plugin: skip_on_empty
  25. method: row
  26. entity_type: entity_type
  27. bundle: bundle
  28. view_mode:
  29. -
  30. plugin: migration
  31. migration: d7_view_modes
  32. source:
  33. - entity_type
  34. - view_mode
  35. -
  36. plugin: extract
  37. index:
  38. - 1
  39. -
  40. plugin: static_map
  41. bypass: true
  42. map:
  43. full: default
  44. field_name: field_name
  45. "options/label": label
  46. "options/weight": weight
  47. # The formatter to use.
  48. "options/type":
  49. -
  50. plugin: static_map
  51. bypass: true
  52. source: type
  53. map:
  54. date_default: datetime_default
  55. email_default: email_mailto
  56. # 0 should cause the row to be skipped by the next plugin in the
  57. # pipeline.
  58. hidden: 0
  59. link_default: link
  60. phone: basic_string
  61. taxonomy_term_reference_link: entity_reference_label
  62. -
  63. plugin: skip_on_empty
  64. method: row
  65. "options/settings":
  66. plugin: default_value
  67. source: settings
  68. default_value: []
  69. "options/third_party_settings": 'constants/third_party_settings'
  70. destination:
  71. plugin: component_entity_display
  72. migration_dependencies:
  73. required:
  74. - d7_field_instance
  75. - d7_view_modes