function FileField::defineValueProcessPipeline

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

Overrides FileField::defineValueProcessPipeline

File

core/modules/file/src/Plugin/migrate/field/d7/FileField.php, line 34

Class

FileField
MigrateField Plugin for Drupal 7 file fields.

Namespace

Drupal\file\Plugin\migrate\field\d7

Code

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

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