You are here

user_profile_entity_display.yml in Drupal 8

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

File

core/modules/user/migrations/user_profile_entity_display.yml
View source
  1. id: user_profile_entity_display
  2. label: User profile display 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. bundle: user
  12. view_mode: default
  13. options:
  14. label: hidden
  15. settings: {}
  16. process:
  17. entity_type: 'constants/entity_type'
  18. bundle: 'constants/bundle'
  19. view_mode: 'constants/view_mode'
  20. field_name:
  21. -
  22. plugin: migration_lookup
  23. migration: user_profile_field
  24. source: fid
  25. -
  26. plugin: skip_on_empty
  27. method: row
  28. -
  29. plugin: extract
  30. index:
  31. - 1
  32. type:
  33. plugin: static_map
  34. source: type
  35. map:
  36. checkbox: list_default
  37. date: datetime_default
  38. list: text_default
  39. selection: list_default
  40. textfield: text_default
  41. textarea: text_default
  42. url: link
  43. options: 'constants/options'
  44. 'options/type': '@type'
  45. hidden:
  46. plugin: static_map
  47. source: visibility
  48. default_value: false
  49. map:
  50. 1: true # PROFILE_PRIVATE
  51. 4: true # PROFILE_HIDDEN
  52. destination:
  53. plugin: component_entity_display
  54. migration_dependencies:
  55. required:
  56. - user_profile_field_instance