TaxonomyTermReference.php in Zircon Profile 8.0
File
core/modules/taxonomy/src/Plugin/migrate/cckfield/TaxonomyTermReference.php
View source
<?php
namespace Drupal\taxonomy\Plugin\migrate\cckfield;
use Drupal\migrate\Entity\MigrationInterface;
use Drupal\migrate_drupal\Plugin\migrate\cckfield\CckFieldPluginBase;
class TaxonomyTermReference extends CckFieldPluginBase {
public function getFieldFormatterMap() {
return array();
}
public function processCckFieldValues(MigrationInterface $migration, $field_name, $data) {
$process = array(
'plugin' => 'iterator',
'source' => $field_name,
'process' => array(
'target_id' => 'tid',
),
);
$migration
->setProcessOfProperty($field_name, $process);
}
}