public function FileField::defineValueProcessPipeline in Drupal 9
Same name in this branch
- 9 core/modules/file/src/Plugin/migrate/field/d6/FileField.php \Drupal\file\Plugin\migrate\field\d6\FileField::defineValueProcessPipeline()
- 9 core/modules/file/src/Plugin/migrate/field/d7/FileField.php \Drupal\file\Plugin\migrate\field\d7\FileField::defineValueProcessPipeline()
Same name and namespace in other branches
- 8 core/modules/file/src/Plugin/migrate/field/d7/FileField.php \Drupal\file\Plugin\migrate\field\d7\FileField::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 FileField::defineValueProcessPipeline
File
- core/
modules/ file/ src/ Plugin/ migrate/ field/ d7/ FileField.php, line 31
Class
- FileField
- Plugin annotation @MigrateField( id = "file", core = {7}, source_module = "file", destination_module = "file" )
Namespace
Drupal\file\Plugin\migrate\field\d7Code
public function defineValueProcessPipeline(MigrationInterface $migration, $field_name, $data) {
$process = [
'plugin' => 'sub_process',
'source' => $field_name,
'process' => [
'target_id' => 'fid',
'display' => 'display',
'description' => 'description',
],
];
$migration
->mergeProcessOfProperty($field_name, $process);
}