You are here

public function FileField::defineValueProcessPipeline in Drupal 10

Same name in this branch
  1. 10 core/modules/file/src/Plugin/migrate/field/d6/FileField.php \Drupal\file\Plugin\migrate\field\d6\FileField::defineValueProcessPipeline()
  2. 10 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
  1. 8 core/modules/file/src/Plugin/migrate/field/d6/FileField.php \Drupal\file\Plugin\migrate\field\d6\FileField::defineValueProcessPipeline()
  2. 9 core/modules/file/src/Plugin/migrate/field/d6/FileField.php \Drupal\file\Plugin\migrate\field\d6\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 FieldPluginBase::defineValueProcessPipeline

1 method overrides FileField::defineValueProcessPipeline()
FileField::defineValueProcessPipeline in core/modules/file/src/Plugin/migrate/field/d7/FileField.php
Apply any custom processing to the field bundle migrations.

File

core/modules/file/src/Plugin/migrate/field/d6/FileField.php, line 47

Class

FileField
Plugin annotation @MigrateField( id = "filefield", core = {6}, source_module = "filefield", destination_module = "file" )

Namespace

Drupal\file\Plugin\migrate\field\d6

Code

public function defineValueProcessPipeline(MigrationInterface $migration, $field_name, $data) {
  $process = [
    'plugin' => 'd6_field_file',
    'source' => $field_name,
  ];
  $migration
    ->mergeProcessOfProperty($field_name, $process);
}