You are here

user_profile_field.yml in Drupal 8

Same filename and directory in other branches
  1. 9 core/modules/user/migrations/user_profile_field.yml
core/modules/user/migrations/user_profile_field.yml

File

core/modules/user/migrations/user_profile_field.yml
View source
  1. id: user_profile_field
  2. label: User profile field configuration
  3. migration_tags:
  4. - Drupal 6
  5. - Drupal 7
  6. - Configuration
  7. source:
  8. plugin: profile_field
  9. constants:
  10. entity_type: user
  11. process:
  12. entity_type: 'constants/entity_type'
  13. field_name:
  14. -
  15. plugin: machine_name
  16. source: name
  17. -
  18. plugin: make_unique_entity_field
  19. length: 30
  20. entity_type: field_storage_config
  21. field: field_name
  22. type:
  23. plugin: static_map
  24. source: type
  25. map:
  26. checkbox: boolean
  27. date: datetime
  28. list: text
  29. selection: list_string
  30. textfield: text
  31. textarea: text_long
  32. url: link
  33. settings:
  34. plugin: profile_field_settings
  35. source: type
  36. 'settings/allowed_values': options
  37. cardinality:
  38. plugin: static_map
  39. default_value: 1
  40. source: type
  41. map:
  42. list: -1
  43. destination:
  44. plugin: entity:field_storage_config