bea24a2562dd1312004d853d72fc1eb73f28fb1c
[yaffs-website] / web / core / modules / config_translation / migrations / d6_field_option_translation.yml
1 id: d6_field_option_translation
2 label: Field option configuration translation
3 migration_tags:
4   - Drupal 6
5   - Configuration
6   - Multilingual
7 source:
8   plugin: d6_field_option_translation
9   skip_count: true
10   constants:
11     entity_type: node
12     allowed_values: settings
13 process:
14   entity_type: 'constants/entity_type'
15   status: active
16   langcode:
17     plugin: skip_on_empty
18     source: language
19     method: row
20   field_name: objectid
21   # Use the process from d6_field to determine the field type.
22   type:
23     plugin: field_type
24     source:
25       - type
26       - widget_type
27     map:
28       userreference:
29         userreference_select: entity_reference
30         userreference_buttons: entity_reference
31         userreference_autocomplete: entity_reference
32       nodereference:
33         nodereference_select: entity_reference
34       number_integer:
35         number: integer
36         optionwidgets_select: list_integer
37         optionwidgets_buttons: list_integer
38         optionwidgets_onoff: boolean
39       number_decimal:
40         number: decimal
41         optionwidgets_select: list_float
42         optionwidgets_buttons: list_float
43         optionwidgets_onoff: boolean
44       number_float:
45         number: float
46         optionwidgets_select: list_float
47         optionwidgets_buttons: list_float
48         optionwidgets_onoff: boolean
49       email:
50         email_textfield: email
51       filefield:
52         imagefield_widget: image
53         filefield_widget: file
54       fr_phone:
55         phone_textfield: telephone
56       be_phone:
57         phone_textfield: telephone
58       it_phone:
59         phone_textfield: telephone
60       el_phone:
61         phone_textfield: telephone
62       ch_phone:
63         phone_textfield: telephone
64       ca_phone:
65         phone_textfield: telephone
66       cr_phone:
67         phone_textfield: telephone
68       pa_phone:
69         phone_textfield: telephone
70       gb_phone:
71         phone_textfield: telephone
72       ru_phone:
73         phone_textfield: telephone
74       ua_phone:
75         phone_textfield: telephone
76       es_phone:
77         phone_textfield: telephone
78       au_phone:
79         phone_textfield: telephone
80       cs_phone:
81         phone_textfield: telephone
82       hu_phone:
83         phone_textfield: telephone
84       pl_phone:
85         phone_textfield: telephone
86       nl_phone:
87         phone_textfield: telephone
88       se_phone:
89         phone_textfield: telephone
90       za_phone:
91         phone_textfield: telephone
92       il_phone:
93         phone_textfield: telephone
94       nz_phone:
95         phone_textfield: telephone
96       br_phone:
97         phone_textfield: telephone
98       cl_phone:
99         phone_textfield: telephone
100       cn_phone:
101         phone_textfield: telephone
102       hk_phone:
103         phone_textfield: telephone
104       mo_phone:
105         phone_textfield: telephone
106       ph_phone:
107         phone_textfield: telephone
108       sg_phone:
109         phone_textfield: telephone
110       jo_phone:
111         phone_textfield: telephone
112       eg_phone:
113         phone_textfield: telephone
114       pk_phone:
115         phone_textfield: telephone
116       int_phone:
117         phone_textfield: telephone
118   results:
119     plugin: d6_field_option_translation
120     source:
121       - '@type'
122       - global_settings
123   translation:
124     -
125       plugin: extract
126       source: '@results'
127       index: [1]
128     -
129       plugin: skip_on_empty
130       method: row
131   property:
132     -
133       plugin: extract
134       source: '@results'
135       index: [0]
136     -
137       plugin: skip_on_empty
138       method: row
139 destination:
140   plugin: entity:field_storage_config
141   translations: true
142 migration_dependencies:
143   required:
144     - d6_field