Classes/Domain/Repository/SitemapRepository.php
private function getSubPages($startPageId)
    {
        $where = $this->pageRepository->enableFields('pages')
            . ' AND ' . UrlEntry::EXCLUDE_FROM_SITEMAP . '!=1' . $this->pageAdditionalWhere;
        try {
            return $this->pageRepository->getMenu($startPageId, '*', 'sorting', $where);
        } catch (\Exception $exception) {
            return [];
        }
    }
private function getSubPages($startPageId)
    {
        $where = $this->pageRepository->enableFields('pages')
            . ' AND ' . UrlEntry::EXCLUDE_FROM_SITEMAP . '!=1' . $this->pageAdditionalWhere;
        try {
            return $this->pageRepository->getMenu($startPageId, '*', 'sorting', $where);
        } catch (\Exception $exception) {
            return [];
        }
    }
private function getSubPages ( $ startPageId ) { $ where = $ this -> pageRepository -> enableFields ( 'pages' ) . ' AND ' . UrlEntry :: EXCLUDE_FROM_SITEMAP . '!=1' . $ this -> pageAdditionalWhere ; try { return $ this -> pageRepository -> getMenu ( $ startPageId , '*' , 'sorting' , $ where ) ; } catch ( \ Exception $ exception ) { return [ ] ; } }
Get sub pages

@param int $startPageId
@return array
Get sub pages