Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / user / migration_templates / 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 source:
7   plugin: profile_field
8   constants:
9     empty: {}
10     entity_type: user
11     bundle: user
12     form_mode: default
13 process:
14   entity_type: 'constants/entity_type'
15   bundle: 'constants/bundle'
16   field_name: name
17   form_mode: 'constants/form_mode'
18   type:
19     plugin: static_map
20     source: type
21     map:
22       checkbox: boolean_checkbox
23       date: datetime_default
24       list: text_textfield
25       selection: options_select
26       textfield: text_textfield
27       textarea: text_textarea
28       url: link_default
29   options: 'constants/options'
30   'options/type': '@type'
31   'options/settings':
32     plugin: field_instance_widget_settings
33     source:
34       - '@type'
35       - 'constants/empty' # we don't have any settings.
36   'options/settings/display_label':  # Single on/off checkboxes need to have display_label = true otherwise their label doesn't show.
37     plugin: static_map
38     default_value: false
39     source: type
40     map:
41       checkbox: true
42   hidden:
43     plugin: static_map
44     source: visibility
45     default_value: false
46     map:
47       1: true # PROFILE_PRIVATE
48       4: true # PROFILE_HIDDEN
49 destination:
50   plugin: component_entity_form_display
51 migration_dependencies:
52   required:
53     - user_profile_field_instance