You are here

d6_field_instance_option_translation.yml in Drupal 8

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