setContentObjectRenderer($this->getContentObjectRenderer()); if ($this->cObj->getUserObjectType() === false) { // Come here only if we are not called as non-cached element $this->cObj->setUserObjectType(ContentObjectRenderer::OBJECTTYPE_USER); } $request = $extbaseBootstrap->initialize($conf, $this->request); $content = $extbaseBootstrap->handleFrontendRequest($request); // Rendering is deferred, as the action should not be cached. Register as non cached element. if ($this->cObj->doConvertToUserIntObject) { $this->cObj->doConvertToUserIntObject = false; // @todo: this should be removed in the future when FE chains allows more "uncacheables" than USER_INTs // also, the handleFrontendRequest() should return the full response in the future $conf['userFunc'] = Bootstrap::class . '->run'; $this->cObj->setUserObjectType(ContentObjectRenderer::OBJECTTYPE_USER_INT); $pageParts = $request->getAttribute('frontend.page.parts'); $substKey = 'INT_SCRIPT.' . md5(StringUtility::getUniqueId()); $content = ''; $pageParts->addNotCachedContentElement([ 'substKey' => $substKey, 'conf' => $conf, 'cObjData' => serialize($this->cObj->getState()), 'type' => 'FUNC', ]); } elseif (isset($conf['stdWrap.'])) { // Only executed when the element is not converted to USER_INT $content = $this->cObj->stdWrap($content, $conf['stdWrap.']); } $this->cObj->setUserObjectType(false); return $content; } }