public function TaxonomyTermReference::processCckFieldValues in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/taxonomy/src/Plugin/migrate/cckfield/TaxonomyTermReference.php \Drupal\taxonomy\Plugin\migrate\cckfield\TaxonomyTermReference::processCckFieldValues()
Apply any custom processing to the cck bundle migrations.
Parameters
\Drupal\migrate\Entity\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 CckFieldValues::fieldData().
Overrides MigrateCckFieldInterface::processCckFieldValues
File
- core/
modules/ taxonomy/ src/ Plugin/ migrate/ cckfield/ TaxonomyTermReference.php, line 30 - Contains \Drupal\taxonomy\Plugin\migrate\cckfield\TaxonomyTermReference.
Class
- TaxonomyTermReference
- Plugin annotation @MigrateCckField( id = "taxonomy_term_reference" )
Namespace
Drupal\taxonomy\Plugin\migrate\cckfieldCode
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);
}