migrate.migration.d6_comment_field_instance.yml 1 KB
Newer Older
1 2
id: d6_comment_field_instance
label: Drupal 6 comment field instance configuration
3
migration_tags:
4
  - Drupal 6
5 6 7 8
source:
  plugin: d6_comment_variable
  constants:
    entity_type: node
9
    label: Comments
10 11
    required: true
process:
12 13 14
  entity_type: 'constants/entity_type'
  label: 'constants/label'
  required: 'constants/required'
15

16 17 18 19 20 21
  field_name:
    plugin: static_map
    source: comment_subject_field
    default_value: comment
    map:
      0: comment_no_subject
22
  bundle: node_type
23 24 25 26 27 28
  'default_value/0/status': comment
  'settings/default_mode': comment_default_mode
  'settings/per_page': comment_default_per_page
  'settings/anonymous': comment_anonymous
  'settings/form_location': comment_form_location
  'settings/preview': comment_preview
29
destination:
30
  plugin: entity:field_config
31
migration_dependencies:
32 33 34
  required:
    - d6_comment_field
    - d6_node_type
35 36 37 38 39 40 41 42
dependencies:
  config:
    - migrate.migration.d6_comment_field
    - migrate.migration.d6_node_type
  module:
    - field
    - migrate_drupal
    - node