public function getPages($rootPageId = 'SITE_ROOT', $maxDepth = 999)
    {
        $pageIds = [];
        if ($rootPageId === 'SITE_ROOT') {
            $rootPageId = (int)$this->rootPage['uid'];
            $pageIds[] = $rootPageId;
        }

        $configurationAwareRecordService = GeneralUtility::makeInstance(ConfigurationAwareRecordService::class);
        // Fetch configuration in order to be able to read initialPagesAdditionalWhereClause
        $solrConfiguration = $this->getSolrConfiguration();
        $indexQueueConfigurationName = $configurationAwareRecordService->getIndexingConfigurationName('pages', $this->rootPage['uid'], $solrConfiguration);
        $initialPagesAdditionalWhereClause = $solrConfiguration->getInitialPagesAdditionalWhereClause($indexQueueConfigurationName);

        return array_merge($pageIds, $this->pagesRepository->findAllSubPageIdsByRootPage($rootPageId, $maxDepth, $initialPagesAdditionalWhereClause));
    }
public function getPages($rootPageId = 'SITE_ROOT', $maxDepth = 999)
    {
        $pageIds = [];
        if ($rootPageId === 'SITE_ROOT') {
            $rootPageId = (int)$this->rootPage['uid'];
            $pageIds[] = $rootPageId;
        }

        $configurationAwareRecordService = GeneralUtility::makeInstance(ConfigurationAwareRecordService::class);
        // Fetch configuration in order to be able to read initialPagesAdditionalWhereClause
        $solrConfiguration = $this->getSolrConfiguration();
        $indexQueueConfigurationName = $configurationAwareRecordService->getIndexingConfigurationName('pages', $this->rootPage['uid'], $solrConfiguration);
        $initialPagesAdditionalWhereClause = $solrConfiguration->getInitialPagesAdditionalWhereClause($indexQueueConfigurationName);

        return array_merge($pageIds, $this->pagesRepository->findAllSubPageIdsByRootPage($rootPageId, $maxDepth, $initialPagesAdditionalWhereClause));
    }
public function getPages ( $ rootPageId = 'SITE_ROOT' , $ maxDepth = 999 ) { $ pageIds = [ ] ; if ( $ rootPageId === 'SITE_ROOT' ) { $ rootPageId = ( int ) $ this -> rootPage [ 'uid' ] ; $ pageIds [ ] = $ rootPageId ; } $ configurationAwareRecordService = GeneralUtility :: makeInstance ( ConfigurationAwareRecordService :: class ) ; // Fetch configuration in order to be able to read initialPagesAdditionalWhereClause $ solrConfiguration = $ this -> getSolrConfiguration ( ) ; $ indexQueueConfigurationName = $ configurationAwareRecordService -> getIndexingConfigurationName ( 'pages' , $ this -> rootPage [ 'uid' ] , $ solrConfiguration ) ; $ initialPagesAdditionalWhereClause = $ solrConfiguration -> getInitialPagesAdditionalWhereClause ( $ indexQueueConfigurationName ) ; return array_merge ( $ pageIds , $ this -> pagesRepository -> findAllSubPageIdsByRootPage ( $ rootPageId , $ maxDepth , $ initialPagesAdditionalWhereClause ) ) ; }
Generates a list of page IDs in this site. Attention, this includes
all page types! Deleted pages are not included.

@param int|string $rootPageId Page ID from where to start collection sub pages
@param int $maxDepth Maximum depth to descend into the site tree
@return array Array of pages (IDs) in this site
Generates a list of page IDs in this site . Attention this includes all page types! Deleted pages are not included .