function FileField::defineValueProcessPipeline

Same name in this branch
  1. 8.9.x core/modules/file/src/Plugin/migrate/field/d7/FileField.php \Drupal\file\Plugin\migrate\field\d7\FileField::defineValueProcessPipeline()
Same name in other branches
  1. 9 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/d7/FileField.php \Drupal\file\Plugin\migrate\field\d7\FileField::defineValueProcessPipeline()
  3. 10 core/modules/file/src/Plugin/migrate/field/d6/FileField.php \Drupal\file\Plugin\migrate\field\d6\FileField::defineValueProcessPipeline()
  4. 10 core/modules/file/src/Plugin/migrate/field/d7/FileField.php \Drupal\file\Plugin\migrate\field\d7\FileField::defineValueProcessPipeline()
  5. 11.x core/modules/file/src/Plugin/migrate/field/d6/FileField.php \Drupal\file\Plugin\migrate\field\d6\FileField::defineValueProcessPipeline()
  6. 11.x core/modules/file/src/Plugin/migrate/field/d7/FileField.php \Drupal\file\Plugin\migrate\field\d7\FileField::defineValueProcessPipeline()

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 45

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.