public function Image::prepareMediaSourceFieldFormatterRow in Media Migration 8
Same name in this branch
- 8 src/Plugin/media_migration/file_entity/Image.php \Drupal\media_migration\Plugin\media_migration\file_entity\Image::prepareMediaSourceFieldFormatterRow()
- 8 src/Plugin/media_migration/file/Image.php \Drupal\media_migration\Plugin\media_migration\file\Image::prepareMediaSourceFieldFormatterRow()
Overrides MediaDealerBase::prepareMediaSourceFieldFormatterRow
File
- src/
Plugin/ media_migration/ file/ Image.php, line 48
Class
- Image
- Plugin for images.
Namespace
Drupal\media_migration\Plugin\media_migration\fileCode
public function prepareMediaSourceFieldFormatterRow(Row $row, Connection $connection) : void {
parent::prepareMediaSourceFieldFormatterRow($row, $connection);
$options = $row
->getSourceProperty('options') ?? [];
$options['settings'] = [
'image_style' => 'large',
];
$row
->setSourceProperty('options', $options);
}