d6_field_instance.yml

Same filename in other branches
  1. 9 core/modules/field/migrations/d6_field_instance.yml
  2. 8.9.x core/modules/field/migrations/d6_field_instance.yml
  3. 10 core/modules/field/migrations/d6_field_instance.yml
core/modules/field/migrations/d6_field_instance.yml

File

core/modules/field/migrations/d6_field_instance.yml

View source
  1. id: d6_field_instance
  2. label: Field instance configuration
  3. migration_tags:
  4. - Drupal 6
  5. - Configuration
  6. class: Drupal\migrate_drupal\Plugin\migrate\FieldMigration
  7. field_plugin_method: alterFieldInstanceMigration
  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_lookup
  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_lookup
  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. translatable: translatable
  55. destination:
  56. plugin: entity:field_config
  57. migration_dependencies:
  58. required:
  59. - d6_node_type
  60. - d6_field

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