migrate_plus.migration.upgrade_d6_node_translation_corpus.yml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. uuid: a28a1430-e17d-4945-b523-68716acdc7f0
  2. langcode: fr
  3. status: true
  4. dependencies: { }
  5. id: upgrade_d6_node_translation_corpus
  6. class: Drupal\migrate\Plugin\Migration
  7. field_plugin_method: null
  8. cck_plugin_method: null
  9. migration_tags:
  10. - 'Drupal 6'
  11. migration_group: migrate_drupal_6
  12. label: 'Node translations (corpus)'
  13. source:
  14. plugin: d6_node
  15. translations: true
  16. source_module: translation
  17. node_type: corpus
  18. process:
  19. nid: tnid
  20. type: type
  21. langcode:
  22. plugin: default_value
  23. source: language
  24. default_value: und
  25. title: title
  26. uid: node_uid
  27. status: status
  28. created: created
  29. changed: changed
  30. promote: promote
  31. sticky: sticky
  32. body/format:
  33. plugin: migration_lookup
  34. migration: upgrade_d6_filter_format
  35. source: format
  36. body/value: body
  37. body/summary: teaser
  38. revision_uid: revision_uid
  39. revision_log: log
  40. revision_timestamp: timestamp
  41. content_translation_source: source_langcode
  42. field_mp3:
  43. plugin: d6_field_file
  44. source: field_mp3
  45. field_artiste:
  46. plugin: iterator
  47. source: field_artiste
  48. process:
  49. value: value
  50. format:
  51. -
  52. plugin: static_map
  53. bypass: true
  54. source: format
  55. map:
  56. - null
  57. -
  58. plugin: skip_on_empty
  59. method: process
  60. -
  61. plugin: migration
  62. migration:
  63. - upgrade_d6_filter_format
  64. - upgrade_d7_filter_format
  65. source: format
  66. field_compositeur:
  67. plugin: iterator
  68. source: field_compositeur
  69. process:
  70. value: value
  71. format:
  72. -
  73. plugin: static_map
  74. bypass: true
  75. source: format
  76. map:
  77. - null
  78. -
  79. plugin: skip_on_empty
  80. method: process
  81. -
  82. plugin: migration
  83. migration:
  84. - upgrade_d6_filter_format
  85. - upgrade_d7_filter_format
  86. source: format
  87. field_genre: field_genre
  88. field_ordre: field_ordre
  89. field_langue: field_langue
  90. field_article:
  91. plugin: iterator
  92. source: field_article
  93. process:
  94. target_id:
  95. plugin: migration_lookup
  96. migration: upgrade_d6_node
  97. source: nid
  98. destination:
  99. plugin: 'entity:node'
  100. translations: true
  101. destination_module: content_translation
  102. default_bundle: corpus
  103. migration_dependencies:
  104. required:
  105. - upgrade_d6_user
  106. - upgrade_d6_node_type
  107. - upgrade_d6_node_settings
  108. - upgrade_d6_filter_format
  109. - upgrade_language
  110. - upgrade_d6_node_corpus
  111. optional:
  112. - upgrade_d6_field_instance_widget_settings
  113. - upgrade_d6_field_formatter_settings
  114. - upgrade_d6_upload_field_instance
  115. - upgrade_d6_filter_format
  116. - upgrade_d7_filter_format