public function getAlternativeSiteRootPagesIds($table, $uid, $recordPageId)
    {
        $siteRootsByObservedPageIds = $this->getSiteRootsByObservedPageIds($table, $uid);
        if (!isset($siteRootsByObservedPageIds[$recordPageId])) {
            return [];
        }

        return $siteRootsByObservedPageIds[$recordPageId];
    }
public function getAlternativeSiteRootPagesIds($table, $uid, $recordPageId)
    {
        $siteRootsByObservedPageIds = $this->getSiteRootsByObservedPageIds($table, $uid);
        if (!isset($siteRootsByObservedPageIds[$recordPageId])) {
            return [];
        }

        return $siteRootsByObservedPageIds[$recordPageId];
    }
public function getAlternativeSiteRootPagesIds ( $ table , $ uid , $ recordPageId ) { $ siteRootsByObservedPageIds = $ this -> getSiteRootsByObservedPageIds ( $ table , $ uid ) ; if ( ! isset ( $ siteRootsByObservedPageIds [ $ recordPageId ] ) ) { return [ ] ; } return $ siteRootsByObservedPageIds [ $ recordPageId ] ; }
When no root page can be determined we check if the pageIdOf the record is configured as additionalPageId in the index
configuration of another site, if so we return the rootPageId of this site.
The result is cached by the caching framework.

@param string $table
@param int $uid
@param int $recordPageId
@return array
When no root page can be determined we check if the pageIdOf the record is configured as additionalPageId in the index configuration of another site if so we return the rootPageId of this site . The result is cached by the caching framework .