You are here

public function FileBase::prepareMediaEntityRow in Media Migration 8

Overrides MediaDealerBase::prepareMediaEntityRow

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

File

src/Plugin/media_migration/file_entity/FileBase.php, line 33

Class

FileBase
Abstract plugin class for file-based media migration source plugins.

Namespace

Drupal\media_migration\Plugin\media_migration\file_entity

Code

public function prepareMediaEntityRow(Row $row, Connection $connection) : void {
  parent::prepareMediaEntityRow($row, $connection);
  foreach ($this
    ->getFileData($connection, $row
    ->getSourceProperty('fid')) as $data_key => $data_value) {
    $row
      ->setSourceProperty($data_key, $data_value);
  }
}