You are here

d6_field_instance.yml in Zircon Profile 8.0

Same filename and directory in other branches
  1. 8 core/modules/field/migration_templates/d6_field_instance.yml
core/modules/field/migration_templates/d6_field_instance.yml

File

core/modules/field/migration_templates/d6_field_instance.yml
View source
  1. id: d6_field_instance
  2. label: Field instance configuration
  3. migration_tags:
  4. - Drupal 6
  5. builder:
  6. plugin: d6_cck_migration
  7. cck_plugin_method: processFieldInstance
  8. source:
  9. plugin: d6_field_instance
  10. constants:
  11. entity_type: node
  12. process:
  13. # We skip field types that don't exist because they weren't migrated by the
  14. # field migration.
  15. field_type_exists:
  16. -
  17. plugin: migration
  18. migration: d6_field
  19. source:
  20. - field_name
  21. -
  22. plugin: extract
  23. index:
  24. - 1
  25. -
  26. plugin: skip_on_empty
  27. method: row
  28. entity_type: 'constants/entity_type'
  29. field_name: field_name
  30. bundle:
  31. -
  32. plugin: migration
  33. migration: d6_node_type
  34. source: type_name
  35. -
  36. plugin: skip_on_empty
  37. method: row
  38. label: label
  39. description: description
  40. required: required
  41. status: active
  42. settings:
  43. plugin: d6_field_field_settings
  44. source:
  45. - widget_type
  46. - widget_settings
  47. - global_settings
  48. default_value_callback: ''
  49. default_value:
  50. plugin: d6_field_instance_defaults
  51. source:
  52. - widget_type
  53. - widget_settings
  54. destination:
  55. plugin: entity:field_config
  56. migration_dependencies:
  57. required:
  58. - d6_node_type
  59. - d6_field