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/d6/UserReference.php \Drupal\migrate_drupal\Plugin\migrate\field\d6\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/ d6/ UserReference.php, line 49 
Class
- UserReference
- MigrateField Plugin for Drupal 6 user reference fields.
Namespace
Drupal\migrate_drupal\Plugin\migrate\field\d6Code
public function defineValueProcessPipeline(MigrationInterface $migration, $field_name, $data) {
  $process = [
    'plugin' => 'sub_process',
    'source' => $field_name,
    'process' => [
      'target_id' => [
        'plugin' => 'migration_lookup',
        'migration' => 'd6_user',
        'source' => 'uid',
      ],
    ],
  ];
  $migration
    ->setProcessOfProperty($field_name, $process);
}