annotate core/modules/taxonomy/migrations/d6_vocabulary_field.yml @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 1fec387a4317
children
rev   line source
Chris@14 1 id: d6_vocabulary_field
Chris@14 2 label: Vocabulary field configuration
Chris@14 3 migration_tags:
Chris@14 4 - Drupal 6
Chris@14 5 - Configuration
Chris@14 6 source:
Chris@14 7 plugin: d6_taxonomy_vocabulary
Chris@14 8 constants:
Chris@14 9 entity_type: node
Chris@14 10 type: entity_reference
Chris@14 11 target_entity_type: taxonomy_term
Chris@14 12 field_prefix: field_
Chris@14 13 process:
Chris@14 14 entity_type: 'constants/entity_type'
Chris@14 15 type: 'constants/type'
Chris@14 16 # This value is only used in the 'field_name' process pipeline below.
Chris@14 17 raw_field_name:
Chris@14 18 -
Chris@14 19 plugin: migration_lookup
Chris@14 20 migration: d6_taxonomy_vocabulary
Chris@14 21 source: vid
Chris@14 22 -
Chris@14 23 plugin: skip_on_empty
Chris@14 24 method: row
Chris@14 25 field_name:
Chris@14 26 # Prepend field_ to avoid conflicts with base fields, and make sure the
Chris@14 27 # result is no longer than 32 characters.
Chris@14 28 -
Chris@14 29 plugin: concat
Chris@14 30 source:
Chris@14 31 - constants/field_prefix
Chris@14 32 - '@raw_field_name'
Chris@14 33 -
Chris@14 34 plugin: substr
Chris@14 35 length: 32
Chris@14 36 -
Chris@14 37 # This plugin checks if the vocabulary being migrated is the one used by
Chris@14 38 # Forum. If so, we use the machine name that Forum expects. Otherwise, we
Chris@14 39 # leave it unchanged.
Chris@14 40 plugin: forum_vocabulary
Chris@14 41 machine_name: taxonomy_forums
Chris@14 42 'settings/target_type': 'constants/target_entity_type'
Chris@14 43 cardinality: cardinality
Chris@14 44 destination:
Chris@14 45 plugin: entity:field_storage_config
Chris@14 46 dependencies:
Chris@14 47 module:
Chris@14 48 - entity_reference
Chris@14 49 migration_dependencies:
Chris@14 50 required:
Chris@14 51 - d6_taxonomy_vocabulary