cObj->setUserObjectType(ContentObjectRenderer::OBJECTTYPE_USER_INT); $tsfe = $this->getTypoScriptFrontendController(); $substKey = 'INT_SCRIPT.' . $tsfe->uniqueHash(); $content = ''; $tsfe->config['INTincScript'][$substKey] = [ 'conf' => $conf, 'cObj' => serialize($this->cObj), 'type' => 'FUNC' ]; $this->cObj->setUserObjectType(false); return $content; } /** * @return \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController */ protected function getTypoScriptFrontendController() { return $GLOBALS['TSFE']; } }