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_entity/ Image.php, line 178
Class
- Image
- Image media migration plugin for local image media entities.
Namespace
Drupal\media_migration\Plugin\media_migration\file_entityCode
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);
}