You are here

d6_field_instance_option_translation.yml in Drupal 9

core/modules/config_translation/migrations/d6_field_instance_option_translation.yml

File

core/modules/config_translation/migrations/d6_field_instance_option_translation.yml
View source
  1. # cspell:ignore imagefield optionwidgets
  2. id: d6_field_instance_option_translation
  3. label: Field instance option configuration translation
  4. migration_tags:
  5. - Drupal 6
  6. - Configuration
  7. - Multilingual
  8. source:
  9. plugin: d6_field_instance_option_translation
  10. skip_count: true
  11. constants:
  12. entity_type: node
  13. property: settings
  14. process:
  15. # We skip field types that don't exist because they weren't migrated by the
  16. # field migration.
  17. field_type_exists:
  18. -
  19. plugin: migration_lookup
  20. migration: d6_field
  21. source:
  22. - objectid
  23. -
  24. plugin: extract
  25. index:
  26. - 1
  27. -
  28. plugin: skip_on_empty
  29. method: row
  30. # Use the process from d6_field to determine the field type.
  31. type:
  32. plugin: field_type
  33. source:
  34. - type
  35. - widget_type
  36. map:
  37. userreference:
  38. userreference_select: entity_reference
  39. userreference_buttons: entity_reference
  40. userreference_autocomplete: entity_reference
  41. nodereference:
  42. nodereference_select: entity_reference
  43. number_integer:
  44. number: integer
  45. optionwidgets_select: list_integer
  46. optionwidgets_buttons: list_integer
  47. optionwidgets_onoff: boolean
  48. number_decimal:
  49. number: decimal
  50. optionwidgets_select: list_float
  51. optionwidgets_buttons: list_float
  52. optionwidgets_onoff: boolean
  53. number_float:
  54. number: float
  55. optionwidgets_select: list_float
  56. optionwidgets_buttons: list_float
  57. optionwidgets_onoff: boolean
  58. email:
  59. email_textfield: email
  60. filefield:
  61. imagefield_widget: image
  62. filefield_widget: file
  63. fr_phone:
  64. phone_textfield: telephone
  65. be_phone:
  66. phone_textfield: telephone
  67. it_phone:
  68. phone_textfield: telephone
  69. el_phone:
  70. phone_textfield: telephone
  71. ch_phone:
  72. phone_textfield: telephone
  73. ca_phone:
  74. phone_textfield: telephone
  75. cr_phone:
  76. phone_textfield: telephone
  77. pa_phone:
  78. phone_textfield: telephone
  79. gb_phone:
  80. phone_textfield: telephone
  81. ru_phone:
  82. phone_textfield: telephone
  83. ua_phone:
  84. phone_textfield: telephone
  85. es_phone:
  86. phone_textfield: telephone
  87. au_phone:
  88. phone_textfield: telephone
  89. cs_phone:
  90. phone_textfield: telephone
  91. hu_phone:
  92. phone_textfield: telephone
  93. pl_phone:
  94. phone_textfield: telephone
  95. nl_phone:
  96. phone_textfield: telephone
  97. se_phone:
  98. phone_textfield: telephone
  99. za_phone:
  100. phone_textfield: telephone
  101. il_phone:
  102. phone_textfield: telephone
  103. nz_phone:
  104. phone_textfield: telephone
  105. br_phone:
  106. phone_textfield: telephone
  107. cl_phone:
  108. phone_textfield: telephone
  109. cn_phone:
  110. phone_textfield: telephone
  111. hk_phone:
  112. phone_textfield: telephone
  113. mo_phone:
  114. phone_textfield: telephone
  115. ph_phone:
  116. phone_textfield: telephone
  117. sg_phone:
  118. phone_textfield: telephone
  119. jo_phone:
  120. phone_textfield: telephone
  121. eg_phone:
  122. phone_textfield: telephone
  123. pk_phone:
  124. phone_textfield: telephone
  125. int_phone:
  126. phone_textfield: telephone
  127. boolean_type:
  128. -
  129. plugin: static_map
  130. source: '@type'
  131. map:
  132. boolean: boolean
  133. default_value: false
  134. -
  135. plugin: skip_on_empty
  136. method: row
  137. bundle:
  138. -
  139. plugin: migration_lookup
  140. migration: d6_node_type
  141. source: type_name
  142. -
  143. plugin: skip_on_empty
  144. method: row
  145. langcode:
  146. plugin: skip_on_empty
  147. source: language
  148. method: row
  149. field_name: objectid
  150. entity_type: 'constants/entity_type'
  151. results:
  152. plugin: d6_field_instance_option_translation
  153. source:
  154. - '@type'
  155. - global_settings
  156. translation:
  157. -
  158. plugin: extract
  159. source: '@results'
  160. index: [1]
  161. -
  162. plugin: skip_on_empty
  163. method: row
  164. property:
  165. -
  166. plugin: extract
  167. source: '@results'
  168. index: [0]
  169. -
  170. plugin: skip_on_empty
  171. method: row
  172. destination:
  173. plugin: entity:field_config
  174. translations: true
  175. migration_dependencies:
  176. required:
  177. - d6_node_type
  178. - d6_field_instance
  179. - d6_field_option_translation
  180. - language