$menuItems = $cmp->getMenuItems($items, $uniqId);$cmp=new BASE_MCMP_WidgetMenu($menuItems) $paramObj->standartParamList->capContent = (new BASE_MCMP_WidgetMenu($menuItems))->render();
with these ones:
$menuItems = $cmp->getMenuItems($items, $uniqId); $cmp = new BASE_MCMP_WidgetMenu($menuItems); $paramObj->standartParamList->capContent = $cmp->render();