You are here

import_node_page.yml in Import 8.2

migrations/import_node_page.yml

File

migrations/import_node_page.yml
View source
  1. class: \Drupal\migrate\Plugin\Migration
  2. id: import_node_page
  3. label: 'Import node:page'
  4. source:
  5. plugin: csv
  6. path: '../data/import.node.page.csv'
  7. header_row_count: 1
  8. keys: [Title]
  9. destination:
  10. plugin: 'entity:node'
  11. process:
  12. type: { plugin: default_value, default_value: page }
  13. title: Title
  14. body/value: Body
  15. body/format: { plugin: default_value, default_value: full_html }
  16. provider: import