public function __construct( private readonly StringTemplateRenderer
$templateRenderer,
private readonly EventDispatcherInterface
$eventDispatcher,
private readonly SeoUrlPlaceholderHandlerInterface
$seoUrlPlaceholderHandler ) { } public function renderHeader( ProductExportEntity
$productExport,
SalesChannelContext
$salesChannelContext ): string
{ if ($productExport->
getHeaderTemplate() === null
) { return '';
} $headerContext =
$this->eventDispatcher->
dispatch( new ProductExportRenderHeaderContextEvent( [ 'productExport' =>
$productExport,
'context' =>
$salesChannelContext,
] ) );