Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / field / migrations / d7_field_instance.yml
1 id: d7_field_instance
2 label: Field instance configuration
3 migration_tags:
4   - Drupal 7
5   - Configuration
6 class: Drupal\migrate_drupal\Plugin\migrate\FieldMigration
7 field_plugin_method: processFieldInstance
8 source:
9   plugin: d7_field_instance
10   constants:
11     status: true
12 process:
13   type:
14     plugin: process_field
15     source: type
16     method: getFieldType
17   entity_type: entity_type
18   field_name: field_name
19   # The bundle needs to be statically mapped in order to support comment types
20   # that might already exist before this migration is run. See
21   # d7_comment_type.yml for more information.
22   bundle:
23     plugin: static_map
24     source: bundle
25     bypass: true
26     map:
27       comment_node_forum: comment_forum
28   label: label
29   description: description
30   required: required
31   status: 'constants/status'
32   settings:
33     plugin: d7_field_instance_settings
34     source:
35       - settings
36       - widget
37       - field_definition
38   default_value_function: ''
39   default_value:
40     plugin: d7_field_instance_defaults
41     source:
42       - default_value
43       - widget
44   translatable: translatable
45 destination:
46   plugin: entity:field_config
47 migration_dependencies:
48   required:
49     - d7_field
50   optional:
51     - d7_node_type
52     - d7_comment_type
53     - d7_taxonomy_vocabulary