protected function buildSiteRootsByObservedPageIds($table, $uid)
    {
        $siteRootByObservedPageIds = [];
        $siteRepository = GeneralUtility::makeInstance(SiteRepository::class);
        $allSites = $siteRepository->getAvailableSites();

        foreach ($allSites as $site) {
            $solrConfiguration = $site->getSolrConfiguration();
            $indexingConfigurationName = $this->recordService->getIndexingConfigurationName($table, $uid, $solrConfiguration);
            $observedPageIdsOfSiteRoot = $solrConfiguration->getIndexQueueAdditionalPageIdsByConfigurationName($indexingConfigurationName);
            foreach ($observedPageIdsOfSiteRoot as $observedPageIdOfSiteRoot) {
                $siteRootByObservedPageIds[$observedPageIdOfSiteRoot][] = $site->getRootPageId();
            }
        }

        return $siteRootByObservedPageIds;
    }
protected function buildSiteRootsByObservedPageIds($table, $uid)
    {
        $siteRootByObservedPageIds = [];
        $siteRepository = GeneralUtility::makeInstance(SiteRepository::class);
        $allSites = $siteRepository->getAvailableSites();

        foreach ($allSites as $site) {
            $solrConfiguration = $site->getSolrConfiguration();
            $indexingConfigurationName = $this->recordService->getIndexingConfigurationName($table, $uid, $solrConfiguration);
            $observedPageIdsOfSiteRoot = $solrConfiguration->getIndexQueueAdditionalPageIdsByConfigurationName($indexingConfigurationName);
            foreach ($observedPageIdsOfSiteRoot as $observedPageIdOfSiteRoot) {
                $siteRootByObservedPageIds[$observedPageIdOfSiteRoot][] = $site->getRootPageId();
            }
        }

        return $siteRootByObservedPageIds;
    }
protected function buildSiteRootsByObservedPageIds ( $ table , $ uid ) { $ siteRootByObservedPageIds = [ ] ; $ siteRepository = GeneralUtility :: makeInstance ( SiteRepository :: class ) ; $ allSites = $ siteRepository -> getAvailableSites ( ) ; foreach ( $ allSites as $ site ) { $ solrConfiguration = $ site -> getSolrConfiguration ( ) ; $ indexingConfigurationName = $ this -> recordService -> getIndexingConfigurationName ( $ table , $ uid , $ solrConfiguration ) ; $ observedPageIdsOfSiteRoot = $ solrConfiguration -> getIndexQueueAdditionalPageIdsByConfigurationName ( $ indexingConfigurationName ) ; foreach ( $ observedPageIdsOfSiteRoot as $ observedPageIdOfSiteRoot ) { $ siteRootByObservedPageIds [ $ observedPageIdOfSiteRoot ] [ ] = $ site -> getRootPageId ( ) ; } } return $ siteRootByObservedPageIds ; }
This methods build an array with observer page id as key and rootPageIds as values to determine which root pages
are responsible for this record by referencing the pageId in additionalPageIds configuration.

@param string $table
@param integer $uid
@return array
This methods build an array with observer page id as key and rootPageIds as values to determine which root pages are responsible for this record by referencing the pageId in additionalPageIds configuration .