d7_node_complete.yml
Same filename in other branches
File
-
core/
modules/ node/ migrations/ d7_node_complete.yml
View source
- # Migrates all revisions and all revision translations.
- id: d7_node_complete
- label: Node complete
- audit: true
- migration_tags:
- - Drupal 7
- - Content
- class: Drupal\node\Plugin\migrate\D7NodeTranslation
- deriver: Drupal\node\Plugin\migrate\D7NodeDeriver
- source:
- plugin: d7_node_complete
- process:
- # If you are using this file to build a custom migration consider removing
- # the nid and vid fields to allow incremental migrations.
- # 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
- vid: vid
- langcode:
- plugin: default_value
- source: language
- default_value: "und"
- title: title
- uid: node_uid
- status: status
- created: created
- changed: timestamp
- promote: promote
- sticky: sticky
- revision_uid: revision_uid
- revision_log: log
- revision_timestamp: timestamp
- content_translation_source: source_langcode
- # unmapped d6 fields.
- # translate
- # comment
- destination:
- plugin: entity_complete:node
- translations: true
- migration_dependencies:
- required:
- - d7_user
- - d7_node_type
- - language
- optional:
- - d7_field_instance
- - d7_comment_field_instance
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.