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.

54 lines
1.1 KiB

uuid: 772b6663-0002-4bbb-9fb4-421b4d26f047
langcode: en
status: true
dependencies: { }
id: upgrade_d7_comment_field
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 configuration'
source:
plugin: comment_type
constants:
entity_type: node
type: comment
process:
entity_type:
-
plugin: get
source: constants/entity_type
-
plugin: static_map
map:
field_collection_item: paragraph
paragraphs_item: paragraph
bypass: true
field_name:
-
plugin: migration_lookup
source: type
migration: upgrade_d7_comment_type
-
plugin: skip_on_empty
method: row
type:
-
plugin: get
source: constants/type
settings/comment_type:
-
plugin: get
source: '@field_name'
destination:
plugin: 'entity:field_storage_config'
migration_dependencies:
required:
- upgrade_d7_comment_type
optional:
- upgrade_d7_field_collection_type
- upgrade_d7_paragraphs_type
- upgrade_d7_comment_type