function ImageField::defineValueProcessPipeline

Same name and namespace in other branches
  1. 9 core/modules/image/src/Plugin/migrate/field/d7/ImageField.php \Drupal\image\Plugin\migrate\field\d7\ImageField::defineValueProcessPipeline()
  2. 8.9.x core/modules/image/src/Plugin/migrate/field/d7/ImageField.php \Drupal\image\Plugin\migrate\field\d7\ImageField::defineValueProcessPipeline()
  3. 10 core/modules/image/src/Plugin/migrate/field/d7/ImageField.php \Drupal\image\Plugin\migrate\field\d7\ImageField::defineValueProcessPipeline()

Overrides FieldPluginBase::defineValueProcessPipeline

File

core/modules/image/src/Plugin/migrate/field/d7/ImageField.php, line 30

Class

ImageField

Namespace

Drupal\image\Plugin\migrate\field\d7

Code

public function defineValueProcessPipeline(MigrationInterface $migration, $field_name, $data) {
    $process = [
        'plugin' => 'sub_process',
        'source' => $field_name,
        'process' => [
            'target_id' => 'fid',
            'alt' => 'alt',
            'title' => 'title',
            'width' => 'width',
            'height' => 'height',
        ],
    ];
    $migration->mergeProcessOfProperty($field_name, $process);
}

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