annotate core/modules/taxonomy/migrations/d6_vocabulary_field.yml @ 5:12f9dff5fda9 tip

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