/** * Fix error with hidden pages not showing correctly with shortcuts. * * @param array $page * @param array $rootLine * @return array */ protected function getMenuItemEntry($page, $rootLine) { $page = parent::getMenuItemEntry($page, $rootLine); $page['hasSubPages'] = count($this->getSubmenu($page['uid'])) > 0 ? 1 : 0; $page['class'] = implode(' ', $this->getItemClass($page)); return $page; }