public function UserReference::defineValueProcessPipeline in Drupal 10
Same name in this branch
- 10 core/modules/migrate_drupal/src/Plugin/migrate/field/d6/UserReference.php \Drupal\migrate_drupal\Plugin\migrate\field\d6\UserReference::defineValueProcessPipeline()
- 10 core/modules/migrate_drupal/src/Plugin/migrate/field/d7/UserReference.php \Drupal\migrate_drupal\Plugin\migrate\field\d7\UserReference::defineValueProcessPipeline()
Same name and namespace in other branches
- 9 core/modules/migrate_drupal/src/Plugin/migrate/field/d7/UserReference.php \Drupal\migrate_drupal\Plugin\migrate\field\d7\UserReference::defineValueProcessPipeline()
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 ReferenceBase::defineValueProcessPipeline
File
- core/
modules/ migrate_drupal/ src/ Plugin/ migrate/ field/ d7/ UserReference.php, line 60
Class
- UserReference
- MigrateField plugin for Drupal 7 user_reference fields.
Namespace
Drupal\migrate_drupal\Plugin\migrate\field\d7Code
public function defineValueProcessPipeline(MigrationInterface $migration, $field_name, $data) {
$process = [
'plugin' => 'sub_process',
'source' => $field_name,
'process' => [
'target_id' => [
'plugin' => 'migration_lookup',
'migration' => 'd7_user',
'source' => 'uid',
],
],
];
$migration
->setProcessOfProperty($field_name, $process);
}