/**
* @return array<array<string, mixed>>
*/
protected function getInvalidLogContent(?string
$invalidLogId): array
{ if (!
$invalidLogId) { return [];
} $logEntity =
$this->
getLogEntity($invalidLogId);
$config = Config::
fromLog($logEntity);
$reader =
new CsvReader();
$filesystem =
$this->
getContainer()->
get('shopware.filesystem.private'
);
/** @var ImportExportFileEntity $file */
$file =
$logEntity->
getFile();
$resource =
$filesystem->
readStream($file->
getPath());
$log =
$reader->
read($config,
$resource, 0
);
return $log instanceof \Traversable ?
iterator_to_array($log) :
[];
} /**
* @param array<array<string, string>> $customFields
*/