function TaxonomyTermReference::processCckFieldValues
Overrides CckFieldPluginBase::processCckFieldValues
File
-
core/
modules/ taxonomy/ src/ Plugin/ migrate/ cckfield/ TaxonomyTermReference.php, line 31
Class
- TaxonomyTermReference
- Plugin annotation @MigrateCckField( id = "taxonomy_term_reference", type_map = { "taxonomy_term_reference" = "entity_reference" }, core = {6,7}, source_module = "taxonomy", destination_module = "core", )
Namespace
Drupal\taxonomy\Plugin\migrate\cckfieldCode
public function processCckFieldValues(MigrationInterface $migration, $field_name, $data) {
$process = [
'plugin' => 'sub_process',
'source' => $field_name,
'process' => [
'target_id' => 'tid',
],
];
$migration->setProcessOfProperty($field_name, $process);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.