d6_comment_field_instance.yml in Zircon Profile 8
Same filename and directory in other branches
core/modules/comment/migration_templates/d6_comment_field_instance.yml
File
core/modules/comment/migration_templates/d6_comment_field_instance.ymlView source
- id: d6_comment_field_instance
- label: Comment field instance configuration
- migration_tags:
- - Drupal 6
- source:
- plugin: d6_comment_variable
- constants:
- entity_type: node
- label: Comments
- required: true
- process:
- entity_type: 'constants/entity_type'
- label: 'constants/label'
- required: 'constants/required'
- field_name:
- plugin: static_map
- source: comment_subject_field
- default_value: comment
- map:
- 0: comment_no_subject
- bundle: node_type
- 'default_value/0/status': comment
- 'settings/default_mode':
- plugin: static_map
- source: comment_default_mode
- map:
- # COMMENT_MODE_FLAT_COLLAPSED --> COMMENT_MODE_FLAT
- 1: 0
- # COMMENT_MODE_FLAT_EXPANDED --> COMMENT_MODE_FLAT
- 2: 0
- # COMMENT_MODE_THREADED_COLLAPSED --> COMMENT_MODE_THREADED
- 3: 1
- # COMMENT_MODE_THREADED_EXPANDED --> COMMENT_MODE_THREADED
- 4: 1
- 'settings/per_page': comment_default_per_page
- 'settings/anonymous': comment_anonymous
- 'settings/form_location': comment_form_location
- 'settings/preview': comment_preview
- destination:
- plugin: entity:field_config
- migration_dependencies:
- required:
- - d6_comment_field
- - d6_node_type