d6_field_instance_option_translation.yml

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.