You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
2.0 KiB
102 lines
2.0 KiB
1 year ago
|
uuid: 3266c96f-2bf7-45e8-8533-630de93c4762
|
||
|
langcode: en
|
||
|
status: true
|
||
|
dependencies: { }
|
||
|
id: upgrade_d7_comment_field_instance
|
||
|
class: Drupal\migrate\Plugin\Migration
|
||
|
field_plugin_method: null
|
||
|
cck_plugin_method: null
|
||
|
migration_tags:
|
||
|
- 'Drupal 7'
|
||
|
- Configuration
|
||
|
migration_group: migrate_drupal_7
|
||
|
label: 'Comment field instance configuration'
|
||
|
source:
|
||
|
plugin: comment_type
|
||
|
constants:
|
||
|
entity_type: node
|
||
|
label: Comments
|
||
|
required: true
|
||
|
process:
|
||
|
entity_type:
|
||
|
-
|
||
|
plugin: get
|
||
|
source: constants/entity_type
|
||
|
-
|
||
|
plugin: static_map
|
||
|
map:
|
||
|
field_collection_item: paragraph
|
||
|
paragraphs_item: paragraph
|
||
|
bypass: true
|
||
|
label:
|
||
|
-
|
||
|
plugin: get
|
||
|
source: constants/label
|
||
|
required:
|
||
|
-
|
||
|
plugin: get
|
||
|
source: constants/required
|
||
|
field_name:
|
||
|
-
|
||
|
plugin: migration_lookup
|
||
|
source: type
|
||
|
migration: upgrade_d7_comment_type
|
||
|
-
|
||
|
plugin: skip_on_empty
|
||
|
method: row
|
||
|
bundle:
|
||
|
-
|
||
|
plugin: get
|
||
|
source: type
|
||
|
default_value/0/status:
|
||
|
-
|
||
|
plugin: static_map
|
||
|
source: comment
|
||
|
map:
|
||
|
- 0
|
||
|
- 1
|
||
|
- 2
|
||
|
default_value: 2
|
||
|
settings/default_mode:
|
||
|
-
|
||
|
plugin: static_map
|
||
|
source: comment_default_mode
|
||
|
map:
|
||
|
- 0
|
||
|
- 1
|
||
|
default_value: 1
|
||
|
settings/per_page:
|
||
|
-
|
||
|
plugin: default_value
|
||
|
source: comment_default_per_page
|
||
|
default_value: 50
|
||
|
settings/anonymous:
|
||
|
-
|
||
|
plugin: default_value
|
||
|
source: comment_anonymous
|
||
|
default_value: 0
|
||
|
settings/form_location:
|
||
|
-
|
||
|
plugin: default_value
|
||
|
source: comment_form_location
|
||
|
default_value: 0
|
||
|
settings/preview:
|
||
|
-
|
||
|
plugin: static_map
|
||
|
source: comment_preview
|
||
|
map:
|
||
|
- 0
|
||
|
- 1
|
||
|
- 2
|
||
|
default_value: 1
|
||
|
destination:
|
||
|
plugin: 'entity:field_config'
|
||
|
migration_dependencies:
|
||
|
required:
|
||
|
- upgrade_d7_node_type
|
||
|
- upgrade_d7_comment_field
|
||
|
optional:
|
||
|
- upgrade_d7_field_collection_type
|
||
|
- upgrade_d7_paragraphs_type
|
||
|
- upgrade_d7_comment_type
|