public function Fallback::prepareMediaEntityRow in Media Migration 8
Overrides MediaDealerBase::prepareMediaEntityRow
File
- src/
Plugin/ media_migration/ file/ Fallback.php, line 153
Class
- Fallback
- General plugin for any kind of file.
Namespace
Drupal\media_migration\Plugin\media_migration\fileCode
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);
}
}