migrate_plus.migration.upgrade_d6_view_modes.yml 983 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. uuid: ab371afe-080e-4b5c-9d09-91fb254b91d3
  2. langcode: fr
  3. status: true
  4. dependencies: { }
  5. id: upgrade_d6_view_modes
  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: 'View modes'
  13. source:
  14. plugin: d6_view_mode
  15. constants:
  16. targetEntityType: node
  17. status: true
  18. process:
  19. mode:
  20. plugin: static_map
  21. source: view_mode
  22. map:
  23. 0: normal
  24. 1: preview
  25. 2: search_index
  26. 3: search_result
  27. 4: rss
  28. 5: print
  29. teaser: teaser
  30. full: full
  31. label:
  32. plugin: static_map
  33. source: view_mode
  34. map:
  35. 0: Normal
  36. 1: Preview
  37. 2: 'Search index'
  38. 3: 'Search result'
  39. 4: RSS
  40. 5: Print
  41. teaser: Teaser
  42. full: Full
  43. targetEntityType: constants/targetEntityType
  44. status: constants/status
  45. destination:
  46. plugin: 'entity:entity_view_mode'
  47. migration_dependencies:
  48. required: { }
  49. optional: { }