3 namespace Drupal\taxonomy\Plugin\migrate\cckfield;
5 @trigger_error('TaxonomyTermReference is deprecated in Drupal 8.4.x and will be removed before Drupal 9.0.x. Use \Drupal\taxonomy\Plugin\migrate\field\TaxonomyTermReference instead.', E_USER_DEPRECATED);
7 use Drupal\migrate\Plugin\MigrationInterface;
8 use Drupal\migrate_drupal\Plugin\migrate\cckfield\CckFieldPluginBase;
12 * id = "taxonomy_term_reference",
14 * "taxonomy_term_reference" = "entity_reference"
17 * source_module = "taxonomy",
18 * destination_module = "core",
21 * @deprecated in Drupal 8.4.x, to be removed before Drupal 9.0.x. Use
22 * \Drupal\taxonomy\Plugin\migrate\field\TaxonomyTermReference instead.
24 * @see https://www.drupal.org/node/2751897
26 class TaxonomyTermReference extends CckFieldPluginBase {
31 public function processCckFieldValues(MigrationInterface $migration, $field_name, $data) {
33 'plugin' => 'sub_process',
34 'source' => $field_name,
39 $migration->setProcessOfProperty($field_name, $process);