public initializeView ( TYPO3\CMS\Extbase\Mvc\View\ViewInterface $view ) : void | ||
$view | TYPO3\CMS\Extbase\Mvc\View\ViewInterface | |
return | void |
/** * @param ViewInterface $view * @return void */ 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)); }
/** * @param ViewInterface $view * @return void */ public function initializeView(ViewInterface $view) { parent::initializeView($view); $view->assign('page', $GLOBALS['TSFE']->page); $view->assign('user', $GLOBALS['TSFE']->fe_user->user); $view->assign('record', $this->getRecord()); $view->assign('contentObject', $this->configurationManager->getContentObject()); $view->assign('cookies', $_COOKIE); $view->assign('session', $_SESSION); }
/** * @param ViewInterface $view * @return void */ public function initializeView(ViewInterface $view) { parent::initializeView($view); $name = $this->getCurrentConfigurationName(); $pageUid = $this->getCurrentPageUid(); $this->configuration = $this->configurationRepository->findOrCreateOneByNameInPid($name, $pageUid); $this->formHandler = $this->objectManager->get('TYPO3\\CMS\\Backend\\Form\\FormEngine'); $this->formHandler->enableClickMenu = TRUE; $this->formHandler->enableTabMenu = TRUE; $this->view->assign('formHandler', $this->formHandler); $this->view->assign('configurationName', $name); $this->view->setControllerContext($this->controllerContext); }
/** * @param ViewInterface $view * @return void */ public function initializeView(ViewInterface $view) { $this->configurationManager->getContentObject()->data = $this->getRecord(); parent::initializeView($view); }
/** * @param \TYPO3\CMS\Extbase\Mvc\View\ViewInterface $view * @return void */ public function initializeView(ViewInterface $view) { $this->configurationManager->getContentObject()->data = $GLOBALS['TSFE']->page; parent::initializeView($view); }