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.

132 lines
2.7 KiB

uuid: bf64b1dd-9d9e-4987-b0fc-1a180688090f
langcode: en
status: true
dependencies: { }
id: upgrade_d7_field_instance
class: Drupal\migrate_drupal\Plugin\migrate\FieldMigration
field_plugin_method: alterFieldInstanceMigration
cck_plugin_method: null
migration_tags:
- 'Drupal 7'
- Configuration
- linkchecker
migration_group: migrate_drupal_7
label: 'Field instance configuration'
source:
plugin: d7_field_instance
constants:
status: true
process:
type:
-
plugin: process_field
source: type
method: getFieldType
entity_type:
-
plugin: get
source: entity_type
-
plugin: static_map
map:
field_collection_item: paragraph
paragraphs_item: paragraph
bypass: true
field_name:
-
plugin: get
source: field_name
bundle_mapped:
-
plugin: static_map
source: bundle
bypass: true
map:
comment_node_forum: comment_forum
-
plugin: paragraphs_process_on_value
source_value: entity_type
expected_value: field_collection_item
process:
plugin: substr
start: 6
bundle:
-
plugin: field_bundle
source:
- entity_type
- '@bundle_mapped'
label:
-
plugin: get
source: label
description:
-
plugin: get
source: description
required:
-
plugin: get
source: required
status:
-
plugin: get
source: constants/status
allowed_values:
-
plugin: sub_process
source: allowed_vid
process:
-
plugin: migration_lookup
migration: upgrade_d7_taxonomy_vocabulary
source: vid
settings:
0:
plugin: d7_field_instance_settings
source:
- settings
- widget
- field_definition
field_collection:
plugin: field_collection_field_instance_settings
paragraphs:
plugin: paragraphs_field_instance_settings
default_value_function:
-
plugin: get
source: ''
default_value:
-
plugin: d7_field_instance_defaults
source:
- default_value
- widget
translatable:
-
plugin: get
source: translatable
third_party_settings/linkchecker:
-
plugin: get
source: linkchecker_config
settings/title:
-
plugin: static_map
source: settings/title
bypass: true
map:
disabled: 0
optional: 1
required: 2
destination:
plugin: 'entity:field_config'
migration_dependencies:
required:
- upgrade_d7_field
optional:
- upgrade_d7_node_type
- upgrade_d7_comment_type
- upgrade_d7_taxonomy_vocabulary
- upgrade_d7_field_collection_type
- upgrade_d7_paragraphs_type