d6_field_option_translation.yml

Same filename in other branches
  1. 9 core/modules/config_translation/migrations/d6_field_option_translation.yml
  2. 8.9.x core/modules/config_translation/migrations/d6_field_option_translation.yml
  3. 10 core/modules/config_translation/migrations/d6_field_option_translation.yml
core/modules/config_translation/migrations/d6_field_option_translation.yml

File

core/modules/config_translation/migrations/d6_field_option_translation.yml

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

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