migrate.migration.d6_comment_field_instance.yml 821 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
id: d6_comment_field_instance
label: Drupal 6 comment field instance configuration
source:
  plugin: d6_comment_variable
  constants:
    entity_type: node
    field_name: comment
    label: Comment settings
    required: true
process:
  entity_type: constants.entity_type
  field_name: constants.field_name
  label: constants.label
  required: constants.required

  bundle: node_type
  'default_value.0.status': comment
  'settings.default_mode': comment_default_mode
  'settings.per_page': comment_default_per_page
  'settings.anonymous': comment_anonymous
  'settings.subject': comment_subject_field
  'settings.form_location': comment_form_location
  'settings.preview': comment_preview
destination:
  plugin: entity:field_instance_config
migration_dependencies:
27 28 29
  required:
    - d6_comment_field
    - d6_node_type