d6_field_formatter_settings.yml

Same filename in other branches
  1. 9 core/modules/field/migrations/d6_field_formatter_settings.yml
  2. 8.9.x core/modules/field/migrations/d6_field_formatter_settings.yml
  3. 11.x core/modules/field/migrations/d6_field_formatter_settings.yml
core/modules/field/migrations/d6_field_formatter_settings.yml

File

core/modules/field/migrations/d6_field_formatter_settings.yml

View source
  1. # cspell:ignore filefield imagelink nodelink nodereference spamspan
  2. # cspell:ignore userreference
  3. id: d6_field_formatter_settings
  4. label: Field formatter configuration
  5. migration_tags:
  6. - Drupal 6
  7. - Configuration
  8. class: Drupal\migrate_drupal\Plugin\migrate\FieldMigration
  9. field_plugin_method: alterFieldFormatterMigration
  10. source:
  11. plugin: d6_field_instance_per_view_mode
  12. constants:
  13. entity_type: node
  14. third_party_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. - field_name
  24. -
  25. plugin: skip_on_empty
  26. method: row
  27. -
  28. plugin: extract
  29. index:
  30. - 1
  31. entity_type: 'constants/entity_type'
  32. bundle:
  33. -
  34. plugin: migration_lookup
  35. migration: d6_node_type
  36. source: type_name
  37. -
  38. plugin: skip_on_empty
  39. method: row
  40. view_mode:
  41. -
  42. plugin: migration_lookup
  43. migration: d6_view_modes
  44. source:
  45. - view_mode
  46. -
  47. plugin: skip_on_empty
  48. method: row
  49. -
  50. plugin: extract
  51. index:
  52. - 1
  53. -
  54. plugin: static_map
  55. bypass: true
  56. map:
  57. full: default
  58. field_name: field_name
  59. "options/label": label
  60. "options/weight": weight
  61. "options/type":
  62. -
  63. plugin: static_map
  64. bypass: true
  65. source:
  66. - type
  67. - 'display_settings/format'
  68. map:
  69. number_integer:
  70. default: number_integer
  71. us_0: number_integer
  72. be_0: number_integer
  73. fr_0: number_integer
  74. unformatted: number_unformatted
  75. number_float:
  76. default: number_decimal
  77. us_0: number_decimal
  78. us_1: number_decimal
  79. us_2: number_decimal
  80. be_0: number_decimal
  81. be_1: number_decimal
  82. be_2: number_decimal
  83. fr_0: number_decimal
  84. fr_1: number_decimal
  85. fr_2: number_decimal
  86. unformatted: number_unformatted
  87. number_decimal:
  88. default: number_decimal
  89. us_0: number_decimal
  90. us_1: number_decimal
  91. us_2: number_decimal
  92. be_0: number_decimal
  93. be_1: number_decimal
  94. be_2: number_decimal
  95. fr_0: number_decimal
  96. fr_1: number_decimal
  97. fr_2: number_decimal
  98. unformatted: number_unformatted
  99. email:
  100. default: email_mailto
  101. spamspan: email_mailto
  102. contact: email_mailto
  103. plain: basic_string
  104. fr_phone:
  105. default: basic_string
  106. be_phone:
  107. default: basic_string
  108. it_phone:
  109. default: basic_string
  110. el_phone:
  111. default: basic_string
  112. ch_phone:
  113. default: basic_string
  114. ca_phone:
  115. default: basic_string
  116. cr_phone:
  117. default: basic_string
  118. pa_phone:
  119. default: basic_string
  120. gb_phone:
  121. default: basic_string
  122. ru_phone:
  123. default: basic_string
  124. ua_phone:
  125. default: basic_string
  126. es_phone:
  127. default: basic_string
  128. au_phone:
  129. default: basic_string
  130. cs_phone:
  131. default: basic_string
  132. hu_phone:
  133. default: basic_string
  134. pl_phone:
  135. default: basic_string
  136. nl_phone:
  137. default: basic_string
  138. se_phone:
  139. default: basic_string
  140. za_phone:
  141. default: basic_string
  142. il_phone:
  143. default: basic_string
  144. nz_phone:
  145. default: basic_string
  146. br_phone:
  147. default: basic_string
  148. cl_phone:
  149. default: basic_string
  150. cn_phone:
  151. default: basic_string
  152. hk_phone:
  153. default: basic_string
  154. mo_phone:
  155. default: basic_string
  156. ph_phone:
  157. default: basic_string
  158. sg_phone:
  159. default: basic_string
  160. jo_phone:
  161. default: basic_string
  162. eg_phone:
  163. default: basic_string
  164. pk_phone:
  165. default: basic_string
  166. int_phone:
  167. default: basic_string
  168. nodereference:
  169. default: entity_reference_label
  170. plain: entity_reference_label
  171. full: entity_reference_entity_view
  172. teaser: entity_reference_entity_view
  173. userreference:
  174. default: entity_reference_label
  175. plain: entity_reference_label
  176. -
  177. plugin: d6_field_type_defaults
  178. "options/settings":
  179. -
  180. plugin: static_map
  181. bypass: true
  182. source:
  183. - module
  184. - 'display_settings/format'
  185. map:
  186. nodereference:
  187. default: { }
  188. plain:
  189. link: false
  190. full:
  191. view_mode: full
  192. teaser:
  193. view_mode: teaser
  194. userreference:
  195. default: { }
  196. plain:
  197. link: false
  198. link:
  199. default:
  200. trim_length: '80'
  201. url_only: 0
  202. url_plain: 0
  203. rel: 0
  204. target: 0
  205. plain:
  206. trim_length: '80'
  207. url_only: 1
  208. url_plain: 1
  209. rel: 0
  210. target: 0
  211. absolute:
  212. trim_length: '80'
  213. url_only: 1
  214. url_plain: 1
  215. rel: 0
  216. target: 0
  217. title_plain: #can't support title as plain text.
  218. trim_length: '80'
  219. url_only: 1
  220. url_plain: 1
  221. rel: 0
  222. target: 0
  223. url:
  224. trim_length: '80'
  225. url_only: 1
  226. url_plain: 0
  227. rel: 0
  228. target: 0
  229. short: #can't support hardcoded link text?
  230. trim_length: '80'
  231. url_only: 0
  232. url_plain: 0
  233. rel: 0
  234. target: 0
  235. label: # can't support label as link text?
  236. trim_length: '80'
  237. url_only: 0
  238. url_plain: 0
  239. rel: 0
  240. target: 0
  241. separate:
  242. trim_length: '80'
  243. rel: 0
  244. target: 0
  245. filefield:
  246. image_plain:
  247. image_style: ''
  248. image_link: ''
  249. image_nodelink:
  250. image_style: ''
  251. image_link: content
  252. image_imagelink:
  253. image_style: ''
  254. image_link: file
  255. date:
  256. default:
  257. format_type: fallback
  258. timezone_override: ''
  259. format_interval:
  260. format_type: fallback
  261. timezone_override: ''
  262. long:
  263. format_type: long
  264. timezone_override: ''
  265. medium:
  266. format_type: medium
  267. timezone_override: ''
  268. short:
  269. format_type: short
  270. timezone_override: ''
  271. text:
  272. trimmed:
  273. trim_length: 600
  274. string:
  275. default:
  276. link_to_entity: false
  277. -
  278. plugin: field_formatter_settings_defaults
  279. "options/third_party_settings": 'constants/third_party_settings'
  280. destination:
  281. plugin: component_entity_display
  282. migration_dependencies:
  283. required:
  284. - d6_field_instance
  285. - d6_view_modes

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