mirror of
https://github.com/tag1consulting/d7_to_d10_migration.git
synced 2025-01-12 23:24:34 +00:00
Add upgrade_d7_field_instance_widget_settings configuration migration
This commit is contained in:
parent
4cc9843d6b
commit
a0de940698
1 changed files with 124 additions and 0 deletions
|
@ -0,0 +1,124 @@
|
||||||
|
uuid: 25b78f74-36a9-4491-91de-b4c46de87752
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies: { }
|
||||||
|
id: upgrade_d7_field_instance_widget_settings
|
||||||
|
class: Drupal\migrate_drupal\Plugin\migrate\FieldMigration
|
||||||
|
field_plugin_method: alterFieldWidgetMigration
|
||||||
|
cck_plugin_method: null
|
||||||
|
migration_tags:
|
||||||
|
- 'Drupal 7'
|
||||||
|
- Configuration
|
||||||
|
migration_group: migrate_drupal_7
|
||||||
|
label: 'Field instance widget configuration'
|
||||||
|
source:
|
||||||
|
plugin: d7_field_instance_per_form_display
|
||||||
|
constants:
|
||||||
|
form_mode: default
|
||||||
|
third_party_settings: { }
|
||||||
|
process:
|
||||||
|
field_type_exists:
|
||||||
|
-
|
||||||
|
plugin: migration_lookup
|
||||||
|
migration: upgrade_d7_field
|
||||||
|
source:
|
||||||
|
- field_name
|
||||||
|
- entity_type
|
||||||
|
-
|
||||||
|
plugin: extract
|
||||||
|
index:
|
||||||
|
- 0
|
||||||
|
-
|
||||||
|
plugin: skip_on_empty
|
||||||
|
method: row
|
||||||
|
bundle:
|
||||||
|
-
|
||||||
|
plugin: migration_lookup
|
||||||
|
migration: upgrade_d7_field_instance
|
||||||
|
source:
|
||||||
|
- entity_type
|
||||||
|
- bundle
|
||||||
|
- field_name
|
||||||
|
-
|
||||||
|
plugin: extract
|
||||||
|
index:
|
||||||
|
- 1
|
||||||
|
form_mode:
|
||||||
|
-
|
||||||
|
plugin: get
|
||||||
|
source: constants/form_mode
|
||||||
|
field_name:
|
||||||
|
-
|
||||||
|
plugin: get
|
||||||
|
source: field_name
|
||||||
|
entity_type:
|
||||||
|
-
|
||||||
|
plugin: get
|
||||||
|
source: entity_type
|
||||||
|
-
|
||||||
|
plugin: static_map
|
||||||
|
map:
|
||||||
|
field_collection_item: paragraph
|
||||||
|
paragraphs_item: paragraph
|
||||||
|
bypass: true
|
||||||
|
options/weight:
|
||||||
|
-
|
||||||
|
plugin: get
|
||||||
|
source: widget/weight
|
||||||
|
widget_type:
|
||||||
|
-
|
||||||
|
plugin: process_field
|
||||||
|
source: type
|
||||||
|
method: getFieldWidgetType
|
||||||
|
options/type:
|
||||||
|
type:
|
||||||
|
plugin: static_map
|
||||||
|
bypass: true
|
||||||
|
source: '@widget_type'
|
||||||
|
map:
|
||||||
|
link_field: link_default
|
||||||
|
email_textfield: email_default
|
||||||
|
date_select: datetime_default
|
||||||
|
date_text: datetime_default
|
||||||
|
date_popup: datetime_default
|
||||||
|
media_generic: file_generic
|
||||||
|
phone_textfield: telephone_default
|
||||||
|
options_onoff: boolean_checkbox
|
||||||
|
entityreference_autocomplete: entity_reference_autocomplete
|
||||||
|
entityreference_autocomplete_tags: entity_reference_autocomplete_tags
|
||||||
|
taxonomy_autocomplete: entity_reference_autocomplete
|
||||||
|
d7_text: d7_text_default
|
||||||
|
taxonomy_term_reference: taxonomy_term_reference_default
|
||||||
|
image: image_default
|
||||||
|
image_miw: image_image
|
||||||
|
url_external: link_default
|
||||||
|
field_collection_embed: entity_reference_paragraphs
|
||||||
|
field_collection: field_collection_default
|
||||||
|
addressfield_standard: address_default
|
||||||
|
entityreference: entityreference_default
|
||||||
|
file_mfw: file_generic
|
||||||
|
filefield_widget: file_generic
|
||||||
|
list: list_default
|
||||||
|
date: datetime_default
|
||||||
|
datetime: datetime_default
|
||||||
|
datestamp: datetime_timestamp
|
||||||
|
number_default: number_default_default
|
||||||
|
options/settings:
|
||||||
|
-
|
||||||
|
plugin: field_instance_widget_settings
|
||||||
|
source:
|
||||||
|
- widget/type
|
||||||
|
- widget/settings
|
||||||
|
options/third_party_settings:
|
||||||
|
-
|
||||||
|
plugin: get
|
||||||
|
source: constants/third_party_settings
|
||||||
|
destination:
|
||||||
|
plugin: component_entity_form_display
|
||||||
|
migration_dependencies:
|
||||||
|
required:
|
||||||
|
- upgrade_d7_field_instance
|
||||||
|
optional:
|
||||||
|
- upgrade_d7_field_collection_type
|
||||||
|
- upgrade_d7_field
|
||||||
|
- upgrade_d7_field_instance
|
Loading…
Reference in a new issue