public function TaxonomyTermReference::processCckFieldValues in Drupal 8
Apply any custom processing to the field bundle migrations.
Parameters
\Drupal\migrate\Plugin\MigrationInterface $migration: The migration entity.
string $field_name: The field name we're processing the value for.
array $data: The array of field data from FieldValues::fieldData().
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);
}