You are here

user_profile_entity_form_display.yml in Drupal 8

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

File

core/modules/user/migrations/user_profile_entity_form_display.yml
View source
  1. id: user_profile_entity_form_display
  2. label: User profile form display configuration
  3. migration_tags:
  4. - Drupal 6
  5. - Drupal 7
  6. - Configuration
  7. source:
  8. plugin: profile_field
  9. constants:
  10. empty: {}
  11. entity_type: user
  12. bundle: user
  13. form_mode: default
  14. process:
  15. entity_type: 'constants/entity_type'
  16. bundle: 'constants/bundle'
  17. field_name:
  18. -
  19. plugin: migration_lookup
  20. migration: user_profile_field
  21. source: fid
  22. -
  23. plugin: skip_on_empty
  24. method: row
  25. -
  26. plugin: extract
  27. index:
  28. - 1
  29. form_mode: 'constants/form_mode'
  30. type:
  31. plugin: static_map
  32. source: type
  33. map:
  34. checkbox: boolean_checkbox
  35. date: datetime_default
  36. list: text_textfield
  37. selection: options_select
  38. textfield: text_textfield
  39. textarea: text_textarea
  40. url: link_default
  41. options: 'constants/options'
  42. 'options/type': '@type'
  43. 'options/settings':
  44. plugin: field_instance_widget_settings
  45. source:
  46. - '@type'
  47. - 'constants/empty' # we don't have any settings.
  48. 'options/settings/display_label': # Single on/off checkboxes need to have display_label = true otherwise their label doesn't show.
  49. plugin: static_map
  50. default_value: false
  51. source: type
  52. map:
  53. checkbox: true
  54. hidden:
  55. plugin: static_map
  56. source: visibility
  57. default_value: false
  58. map:
  59. 1: true # PROFILE_PRIVATE
  60. 4: true # PROFILE_HIDDEN
  61. destination:
  62. plugin: component_entity_form_display
  63. migration_dependencies:
  64. required:
  65. - user_profile_field_instance