function ImageField::processCckFieldValues

Overrides CckFieldPluginBase::processCckFieldValues

File

core/modules/image/src/Plugin/migrate/cckfield/d7/ImageField.php, line 28

Class

ImageField
Plugin annotation @MigrateCckField( id = "image", core = {7}, source_module = "image", destination_module = "file" )

Namespace

Drupal\image\Plugin\migrate\cckfield\d7

Code

public function processCckFieldValues(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.