You are here

public function Image::prepareMediaSourceFieldStorageRow in Media Migration 8

Overrides MediaDealerBase::prepareMediaSourceFieldStorageRow

File

src/Plugin/media_migration/file_entity/Image.php, line 119

Class

Image
Image media migration plugin for local image media entities.

Namespace

Drupal\media_migration\Plugin\media_migration\file_entity

Code

public function prepareMediaSourceFieldStorageRow(Row $row, Connection $connection) : void {
  parent::prepareMediaSourceFieldStorageRow($row, $connection);
  $settings = $row
    ->getSourceProperty('settings');
  $settings['display_field'] = FALSE;
  $settings['display_default'] = FALSE;
  $row
    ->setSourceProperty('settings', $settings);
}