$renderHeaderException = ProductExportException::
renderHeaderException($exception->
getMessage());
$this->
logException($salesChannelContext->
getContext(),
$renderHeaderException);
throw $renderHeaderException;
} } public function renderFooter( ProductExportEntity
$productExport,
SalesChannelContext
$salesChannelContext ): string
{ if ($productExport->
getFooterTemplate() === null
) { return '';
} $footerContext =
$this->eventDispatcher->
dispatch( new ProductExportRenderFooterContextEvent( [ 'productExport' =>
$productExport,
'context' =>
$salesChannelContext,
] ) );