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