44a5c5333df2b8d8f1b5db9caaaae00f45c215ff
[yaffs-website] / web / core / modules / user / migrations / user_profile_entity_form_display.yml
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: name
18   form_mode: 'constants/form_mode'
19   type:
20     plugin: static_map
21     source: type
22     map:
23       checkbox: boolean_checkbox
24       date: datetime_default
25       list: text_textfield
26       selection: options_select
27       textfield: text_textfield
28       textarea: text_textarea
29       url: link_default
30   options: 'constants/options'
31   'options/type': '@type'
32   'options/settings':
33     plugin: field_instance_widget_settings
34     source:
35       - '@type'
36       - 'constants/empty' # we don't have any settings.
37   'options/settings/display_label':  # Single on/off checkboxes need to have display_label = true otherwise their label doesn't show.
38     plugin: static_map
39     default_value: false
40     source: type
41     map:
42       checkbox: true
43   hidden:
44     plugin: static_map
45     source: visibility
46     default_value: false
47     map:
48       1: true # PROFILE_PRIVATE
49       4: true # PROFILE_HIDDEN
50 destination:
51   plugin: component_entity_form_display
52 migration_dependencies:
53   required:
54     - user_profile_field_instance