protected function buildResponsibleRootPageIds($table, $uid)
    {
        $rootPages = [];
        $rootPageId = $this->getRootPageIdByTableAndUid($table, $uid);
        if ($this->getIsRootPageId($rootPageId)) {
            $rootPages[] = $rootPageId;
        }
        if ($this->extensionConfiguration->getIsUseConfigurationTrackRecordsOutsideSiteroot()) {
            $recordPageId = $this->getRecordPageId($table, $uid);
            if ($recordPageId === 0) {
                return $rootPages;
            }
            $alternativeSiteRoots = $this->getAlternativeSiteRootPagesIds($table, $uid, $recordPageId);
            $rootPages = array_merge($rootPages, $alternativeSiteRoots);
        }

        return $rootPages;
    }
protected function buildResponsibleRootPageIds($table, $uid)
    {
        $rootPages = [];
        $rootPageId = $this->getRootPageIdByTableAndUid($table, $uid);
        if ($this->getIsRootPageId($rootPageId)) {
            $rootPages[] = $rootPageId;
        }
        if ($this->extensionConfiguration->getIsUseConfigurationTrackRecordsOutsideSiteroot()) {
            $recordPageId = $this->getRecordPageId($table, $uid);
            if ($recordPageId === 0) {
                return $rootPages;
            }
            $alternativeSiteRoots = $this->getAlternativeSiteRootPagesIds($table, $uid, $recordPageId);
            $rootPages = array_merge($rootPages, $alternativeSiteRoots);
        }

        return $rootPages;
    }
protected function buildResponsibleRootPageIds ( $ table , $ uid ) { $ rootPages = [ ] ; $ rootPageId = $ this -> getRootPageIdByTableAndUid ( $ table , $ uid ) ; if ( $ this -> getIsRootPageId ( $ rootPageId ) ) { $ rootPages [ ] = $ rootPageId ; } if ( $ this -> extensionConfiguration -> getIsUseConfigurationTrackRecordsOutsideSiteroot ( ) ) { $ recordPageId = $ this -> getRecordPageId ( $ table , $ uid ) ; if ( $ recordPageId === 0 ) { return $ rootPages ; } $ alternativeSiteRoots = $ this -> getAlternativeSiteRootPagesIds ( $ table , $ uid , $ recordPageId ) ; $ rootPages = array_merge ( $ rootPages , $ alternativeSiteRoots ) ; } return $ rootPages ; }
This method determines the responsible site roots for a record by getting the rootPage of the record and checking
if the pid is references in another site with additionalPageIds and returning those rootPageIds as well.

@param string $table
@param integer $uid
@return array
This method determines the responsible site roots for a record by getting the rootPage of the record and checking if the pid is references in another site with additionalPageIds and returning those rootPageIds as well .