You are here

public function MediaDealerBase::prepareMediaSourceFieldStorageRow in Media Migration 8

1 call to MediaDealerBase::prepareMediaSourceFieldStorageRow()
Image::prepareMediaSourceFieldStorageRow in src/Plugin/media_migration/file_entity/Image.php
1 method overrides MediaDealerBase::prepareMediaSourceFieldStorageRow()
Image::prepareMediaSourceFieldStorageRow in src/Plugin/media_migration/file_entity/Image.php

File

src/MediaDealerBase.php, line 170

Class

MediaDealerBase
Base implementation of media dealer plugins.

Namespace

Drupal\media_migration

Code

public function prepareMediaSourceFieldStorageRow(Row $row, Connection $connection) : void {
  $dummy_field_storage = $this
    ->getMediaSourceFieldStorage();
  $additional_properties = [
    'field_type' => $dummy_field_storage
      ->getType(),
    'settings' => $dummy_field_storage
      ->getSettings(),
  ];
  $additional_properties['settings']['uri_scheme'] = $this->configuration['scheme'];
  foreach ($additional_properties as $source_property => $source_value) {
    $row
      ->setSourceProperty($source_property, $source_value);
  }
}