Newer
Older
Angie Byron
committed
id: d7_field_instance
Angie Byron
committed
label: Field instance configuration
Angie Byron
committed
migration_tags:
- Drupal 7
class: Drupal\migrate_drupal\Plugin\migrate\FieldMigration
field_plugin_method: processFieldInstance
Angie Byron
committed
source:
plugin: d7_field_instance
constants:
status: true
process:
type:
plugin: process_field
source: type
method: getFieldType
Angie Byron
committed
entity_type: entity_type
field_name: field_name
Angie Byron
committed
# The bundle needs to be statically mapped in order to support comment types
# that might already exist before this migration is run. See
# d7_comment_type.yml for more information.
bundle:
plugin: static_map
source: bundle
bypass: true
map:
comment_node_forum: comment_forum
Angie Byron
committed
label: label
description: description
required: required
status: 'constants/status'
settings:
plugin: d7_field_instance_settings
source:
- settings
- widget
- field_definition
Angie Byron
committed
default_value_function: ''
default_value:
plugin: d7_field_instance_defaults
source:
- default_value
- widget
translatable: translatable
Angie Byron
committed
destination:
plugin: entity:field_config
migration_dependencies:
required:
- d7_field
Angie Byron
committed
optional:
- d7_node_type
- d7_comment_type
- d7_taxonomy_vocabulary