public function ReferenceBase::defineValueProcessPipeline in Drupal 9
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 FieldPluginBase::defineValueProcessPipeline
2 methods override ReferenceBase::defineValueProcessPipeline()
- UserReference::defineValueProcessPipeline in core/
modules/ migrate_drupal/ src/ Plugin/ migrate/ field/ d6/ UserReference.php - Apply any custom processing to the field bundle migrations.
- UserReference::defineValueProcessPipeline in core/
modules/ migrate_drupal/ src/ Plugin/ migrate/ field/ d7/ UserReference.php - Apply any custom processing to the field bundle migrations.
File
- core/
modules/ migrate_drupal/ src/ Plugin/ migrate/ field/ ReferenceBase.php, line 46
Class
- ReferenceBase
- Base class for Drupal reference fields.
Namespace
Drupal\migrate_drupal\Plugin\migrate\fieldCode
public function defineValueProcessPipeline(MigrationInterface $migration, $field_name, $data) {
$process = [
'plugin' => 'sub_process',
'source' => $field_name,
'process' => [
'target_id' => $this
->entityId(),
],
];
$migration
->setProcessOfProperty($field_name, $process);
}