public function getConfigurationsBySite(Site $site)
    {
        $solrConfigurations = [];

        $allConfigurations = $this->getAllConfigurations();
        foreach ($allConfigurations as $configuration) {
            if ($configuration['rootPageUid'] == $site->getRootPageId()) {
                $solrConfigurations[] = $configuration;
            }
        }

        return $solrConfigurations;
    }
public function getConfigurationsBySite(Site $site)
    {
        $solrConfigurations = [];

        $allConfigurations = $this->getAllConfigurations();
        foreach ($allConfigurations as $configuration) {
            if ($configuration['rootPageUid'] == $site->getRootPageId()) {
                $solrConfigurations[] = $configuration;
            }
        }

        return $solrConfigurations;
    }
public function getConfigurationsBySite ( Site $ site ) { $ solrConfigurations = [ ] ; $ allConfigurations = $ this -> getAllConfigurations ( ) ; foreach ( $ allConfigurations as $ configuration ) { if ( $ configuration [ 'rootPageUid' ] == $ site -> getRootPageId ( ) ) { $ solrConfigurations [ ] = $ configuration ; } } return $ solrConfigurations ; }
Gets all connection configurations for a given site.

@param Site $site A TYPO3 site
@return array An array of Solr connection configurations for a site
Gets all connection configurations for a given site .