import_node_article.yml in Import 8.2
migrations/import_node_article.yml
File
migrations/import_node_article.ymlView source
- class: \Drupal\migrate\Plugin\Migration
- id: import_node_article
- label: 'Import node:article'
- source:
- plugin: article_node
- path: '../data/import.node.article.csv'
- header_row_count: 1
- keys: [Title]
- csvColumns: { 2: Image, 3: Tags }
- destination:
- plugin: 'entity:node'
- process:
- type: { plugin: default_value, default_value: article }
- title: Title
- body/value: Body
- field_image: Image
- field_tags: { plugin: migration, migration: import_term_tags, source: Tags }
- body/format: { plugin: default_value, default_value: full_html }
- provider: import
- migration_dependencies:
- required: [import_term_tags]
- optional: [import_term_tags]