You are here

import_node_article.yml in Import 8.2

migrations/import_node_article.yml

File

migrations/import_node_article.yml
View source
  1. class: \Drupal\migrate\Plugin\Migration
  2. id: import_node_article
  3. label: 'Import node:article'
  4. source:
  5. plugin: article_node
  6. path: '../data/import.node.article.csv'
  7. header_row_count: 1
  8. keys: [Title]
  9. csvColumns: { 2: Image, 3: Tags }
  10. destination:
  11. plugin: 'entity:node'
  12. process:
  13. type: { plugin: default_value, default_value: article }
  14. title: Title
  15. body/value: Body
  16. field_image: Image
  17. field_tags: { plugin: migration, migration: import_term_tags, source: Tags }
  18. body/format: { plugin: default_value, default_value: full_html }
  19. provider: import
  20. migration_dependencies:
  21. required: [import_term_tags]
  22. optional: [import_term_tags]