public function initializeView(ViewInterface $view)
{
$record = $this->getRecord();
$this->configurationManager->getContentObject()->data = $record;
parent::initializeView($view);
$this->response->addAdditionalHeaderData((string) $this->view->renderStandaloneSection('HeaderCode', $this->provider->getTemplateVariables($record), true));
}