Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TaxonomyTermReference.php

function TaxonomyTermReference::defineValueProcessPipeline

Overrides FieldPluginBase::defineValueProcessPipeline

File

core/modules/taxonomy/src/Plugin/migrate/field/TaxonomyTermReference.php, line 41

Class

TaxonomyTermReference
MigrateField Plugin for Drupal 6 & Drupal 7 taxonomy term reference fields.

Namespace

Drupal\taxonomy\Plugin\migrate\field

Code

public function defineValueProcessPipeline(MigrationInterface $migration, $field_name, $data) {
    $process = [
        'plugin' => 'sub_process',
        'source' => $field_name,
        'process' => [
            'target_id' => 'tid',
        ],
    ];
    $migration->setProcessOfProperty($field_name, $process);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal