3 namespace Drupal\taxonomy\Plugin\migrate\field;
5 use Drupal\migrate\Plugin\MigrationInterface;
6 use Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase;
10 * id = "taxonomy_term_reference",
12 * "taxonomy_term_reference" = "entity_reference"
15 * source_module = "taxonomy",
16 * destination_module = "core",
19 class TaxonomyTermReference extends FieldPluginBase {
24 public function getFieldFormatterMap() {
26 'taxonomy_term_reference_link' => 'entity_reference_label',
33 public function processFieldValues(MigrationInterface $migration, $field_name, $data) {
35 'plugin' => 'sub_process',
36 'source' => $field_name,
41 $migration->setProcessOfProperty($field_name, $process);