Skip to content
d6_comment.yml 1.14 KiB
Newer Older
source:
  plugin: d6_comment
  constants:
    entity_type: node
process:
  # If you are using this file to build a custom migration consider removing
  # the cid field to allow incremental migrations.
  entity_type: 'constants/entity_type'
  # field_name & comment_type is calculated in
  # \Drupal\migrate_drupal\Plugin\migrate\source\d6\Comment::prepareRow()
  field_name: field_name
  comment_type: comment_type
  name: name
  mail: mail
  homepage: homepage
  hostname: hostname
  created: timestamp
  changed: timestamp
  status: status #In D6, published=0. We reverse the value in prepareRow.
  thread: thread
  'comment_body/value': comment
  'comment_body/format':
    migration: d6_filter_format
    source: format
destination:
  plugin: entity:comment
migration_dependencies:
    - d6_comment_entity_display
    - d6_comment_entity_form_display