Chris@0: id: d6_vocabulary_field Chris@0: label: Vocabulary field configuration Chris@0: migration_tags: Chris@0: - Drupal 6 Chris@0: - Configuration Chris@0: source: Chris@0: plugin: d6_taxonomy_vocabulary Chris@0: constants: Chris@0: entity_type: node Chris@0: type: entity_reference Chris@0: target_entity_type: taxonomy_term Chris@0: field_prefix: field_ Chris@0: process: Chris@0: entity_type: 'constants/entity_type' Chris@0: type: 'constants/type' Chris@0: # This value is only used in the 'field_name' process pipeline below. Chris@0: raw_field_name: Chris@0: - Chris@0: plugin: migration_lookup Chris@0: migration: d6_taxonomy_vocabulary Chris@0: source: vid Chris@0: - Chris@0: plugin: skip_on_empty Chris@0: method: row Chris@0: field_name: Chris@0: # Prepend field_ to avoid conflicts with base fields, and make sure the Chris@0: # result is no longer than 32 characters. Chris@0: - Chris@0: plugin: concat Chris@0: source: Chris@0: - constants/field_prefix Chris@0: - '@raw_field_name' Chris@0: - Chris@0: plugin: substr Chris@0: length: 32 Chris@0: - Chris@0: # This plugin checks if the vocabulary being migrated is the one used by Chris@0: # Forum. If so, we use the machine name that Forum expects. Otherwise, we Chris@0: # leave it unchanged. Chris@0: plugin: forum_vocabulary Chris@0: machine_name: taxonomy_forums Chris@0: 'settings/target_type': 'constants/target_entity_type' Chris@0: cardinality: cardinality Chris@0: destination: Chris@0: plugin: entity:field_storage_config Chris@0: dependencies: Chris@0: module: Chris@0: - entity_reference Chris@0: migration_dependencies: Chris@0: required: Chris@0: - d6_taxonomy_vocabulary