d6_field_option_translation.yml

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

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