d6_field_formatter_settings.yml

Same filename in other branches
  1. 9 core/modules/field/migrations/d6_field_formatter_settings.yml
  2. 10 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. id: d6_field_formatter_settings
  2. label: Field formatter configuration
  3. migration_tags:
  4. - Drupal 6
  5. - Configuration
  6. class: Drupal\migrate_drupal\Plugin\migrate\FieldMigration
  7. field_plugin_method: alterFieldFormatterMigration
  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_lookup
  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_lookup
  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_lookup
  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. nodereference:
  167. default: entity_reference_label
  168. plain: entity_reference_label
  169. full: entity_reference_entity_view
  170. teaser: entity_reference_entity_view
  171. userreference:
  172. default: entity_reference_label
  173. plain: entity_reference_label
  174. -
  175. plugin: d6_field_type_defaults
  176. "options/settings":
  177. -
  178. plugin: static_map
  179. bypass: true
  180. source:
  181. - module
  182. - 'display_settings/format'
  183. map:
  184. nodereference:
  185. default: { }
  186. plain:
  187. link: false
  188. full:
  189. view_mode: full
  190. teaser:
  191. view_mode: teaser
  192. userreference:
  193. default: { }
  194. plain:
  195. link: false
  196. link:
  197. default:
  198. trim_length: '80'
  199. url_only: 0
  200. url_plain: 0
  201. rel: 0
  202. target: 0
  203. plain:
  204. trim_length: '80'
  205. url_only: 1
  206. url_plain: 1
  207. rel: 0
  208. target: 0
  209. absolute:
  210. trim_length: '80'
  211. url_only: 1
  212. url_plain: 1
  213. rel: 0
  214. target: 0
  215. title_plain: #can't support title as plain text.
  216. trim_length: '80'
  217. url_only: 1
  218. url_plain: 1
  219. rel: 0
  220. target: 0
  221. url:
  222. trim_length: '80'
  223. url_only: 1
  224. url_plain: 0
  225. rel: 0
  226. target: 0
  227. short: #can't support hardcoded link text?
  228. trim_length: '80'
  229. url_only: 0
  230. url_plain: 0
  231. rel: 0
  232. target: 0
  233. label: # can't support label as link text?
  234. trim_length: '80'
  235. url_only: 0
  236. url_plain: 0
  237. rel: 0
  238. target: 0
  239. separate:
  240. trim_length: '80'
  241. rel: 0
  242. target: 0
  243. filefield:
  244. image_plain:
  245. image_style: ''
  246. image_link: ''
  247. image_nodelink:
  248. image_style: ''
  249. image_link: content
  250. image_imagelink:
  251. image_style: ''
  252. image_link: file
  253. date:
  254. default:
  255. format_type: fallback
  256. timezone_override: ''
  257. format_interval:
  258. format_type: fallback
  259. timezone_override: ''
  260. long:
  261. format_type: long
  262. timezone_override: ''
  263. medium:
  264. format_type: medium
  265. timezone_override: ''
  266. short:
  267. format_type: short
  268. timezone_override: ''
  269. text:
  270. trimmed:
  271. trim_length: 600
  272. string:
  273. default:
  274. link_to_entity: false
  275. -
  276. plugin: field_formatter_settings_defaults
  277. "options/third_party_settings": 'constants/third_party_settings'
  278. destination:
  279. plugin: component_entity_display
  280. migration_dependencies:
  281. required:
  282. - d6_field_instance
  283. - d6_view_modes

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