cObj->checkIf($conf['if.'])) { return ''; } $theValue = ''; $menuType = $conf[1] ?? ''; try { $register = $this->request->getAttribute('frontend.register.stack')->current(); $menuObjectFactory = GeneralUtility::makeInstance(MenuContentObjectFactory::class); $menu = $menuObjectFactory->getMenuObjectByType($menuType); $countHMENU = (int)$register->get('count_HMENU', 0); $countHMENU++; $register->set('count_HMENU', $countHMENU); $register->set('count_HMENU_MENUOBJ', 0); $register->set('count_MENUOBJ', 0); $menu->parent_cObj = $this->getContentObjectRenderer(); $menu->start(null, $this->getPageRepository(), '', $conf, 1, '', $this->request); $menu->makeMenu(); $theValue .= $menu->writeMenu(); } catch (NoSuchMenuTypeException) { } $wrap = $this->cObj->stdWrapValue('wrap', $conf); if ($wrap) { $theValue = $this->cObj->wrap($theValue, $wrap); } if (isset($conf['stdWrap.'])) { $theValue = $this->cObj->stdWrap($theValue, $conf['stdWrap.']); } return $theValue; } }