function ImageField::defineValueProcessPipeline
Same name in other branches
- 8.9.x core/modules/image/src/Plugin/migrate/field/d7/ImageField.php \Drupal\image\Plugin\migrate\field\d7\ImageField::defineValueProcessPipeline()
- 10 core/modules/image/src/Plugin/migrate/field/d7/ImageField.php \Drupal\image\Plugin\migrate\field\d7\ImageField::defineValueProcessPipeline()
- 11.x 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 31
Class
- ImageField
- Plugin annotation @MigrateField( id = "image", core = {7}, source_module = "image", destination_module = "image" )
Namespace
Drupal\image\Plugin\migrate\field\d7Code
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.