You are here

public function RemoteVideoBase::prepareMediaSourceFieldFormatterRow in Media Migration 8

Overrides MediaDealerBase::prepareMediaSourceFieldFormatterRow

File

src/Plugin/media_migration/file_entity/RemoteVideoBase.php, line 62

Class

RemoteVideoBase
Abstract plugin class for remote video media migration source plugins.

Namespace

Drupal\media_migration\Plugin\media_migration\file_entity

Code

public function prepareMediaSourceFieldFormatterRow(Row $row, Connection $connection) : void {
  parent::prepareMediaSourceFieldFormatterRow($row, $connection);
  $options = [
    'type' => 'oembed',
  ] + $row
    ->getSourceProperty('options') ?? [];
  $row
    ->setSourceProperty('options', $options);
}