You are here

d6_field_formatter_settings.yml in Zircon Profile 8.0

core/modules/field/migration_templates/d6_field_formatter_settings.yml

File

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