migrate_plus.migration.upgrade_d6_field_formatter_settings.yml 6.9 KB

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