d7_node.yml 951 Bytes
Newer Older
1
id: d7_node
2
label: Nodes
3 4
migration_tags:
  - Drupal 7
5
deriver: Drupal\node\Plugin\migrate\D7NodeDeriver
6 7 8
source:
  plugin: d7_node
process:
9 10
  # If you are using this file to build a custom migration consider removing
  # the nid and vid fields to allow incremental migrations.
11 12 13 14
  # In D7, nodes always have a tnid, but it's zero for untranslated nodes.
  # We normalize it to equal the nid in that case.
  # @see \Drupal\node\Plugin\migrate\source\d7\Node::prepareRow().
  nid: tnid
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
  vid: vid
  langcode:
    plugin: default_value
    source: language
    default_value: "und"
  title: title
  uid: node_uid
  status: status
  created: created
  changed: changed
  promote: promote
  sticky: sticky
  revision_uid: revision_uid
  revision_log: log
  revision_timestamp: timestamp
destination:
  plugin: entity:node
migration_dependencies:
  required:
    - d7_user
    - d7_node_type
36 37
  optional:
    - d7_field_instance
38
    - d7_comment_field_instance