public function useSiteHashFromTypoScript(int $requestedPageId): QueryBuilder
    {
        $queryConfiguration = $this->typoScriptConfiguration->getObjectByPathOrDefault('plugin.tx_solr.search.query.', []);
        $allowedSites = $this->siteHashService->getAllowedSitesForPageIdAndAllowedSitesConfiguration($requestedPageId, $queryConfiguration['allowedSites']);
        return $this->useSiteHashFromAllowedSites($allowedSites);
    }
public function useSiteHashFromTypoScript(int $requestedPageId): QueryBuilder
    {
        $queryConfiguration = $this->typoScriptConfiguration->getObjectByPathOrDefault('plugin.tx_solr.search.query.', []);
        $allowedSites = $this->siteHashService->getAllowedSitesForPageIdAndAllowedSitesConfiguration($requestedPageId, $queryConfiguration['allowedSites']);
        return $this->useSiteHashFromAllowedSites($allowedSites);
    }
public function useSiteHashFromTypoScript ( int $ requestedPageId ) : QueryBuilder { $ queryConfiguration = $ this -> typoScriptConfiguration -> getObjectByPathOrDefault ( 'plugin.tx_solr.search.query.' , [ ] ) ; $ allowedSites = $ this -> siteHashService -> getAllowedSitesForPageIdAndAllowedSitesConfiguration ( $ requestedPageId , $ queryConfiguration [ 'allowedSites' ] ) ; return $ this -> useSiteHashFromAllowedSites ( $ allowedSites ) ; }
Can be used to apply the allowed sites from plugin.tx_solr.search.query.allowedSites to the query.

@param int $requestedPageId
@return QueryBuilder
Can be used to apply the allowed sites from plugin . tx_solr . search . query . allowedSites to the query .