Migrate a path string like 'top/middle/lowest' into hierarchical terms like

top
- middle
-- lowest

If there is already an existing term that matches the name and position in the hierarchy it is used instead of creating a new one.

Usage

This module provides a migration process plugin.

In the migrate .yml file that defines your migration.

field_term_entity_references:
  plugin: structure_terms
  source: source_string
  vocabulary: 'vocabulary_machine_name'