protected function getConnectionsForIndexableLanguages(array $translationOverlays)
    {
        $connections = [];

        foreach ($translationOverlays as $translationOverlay) {
            $pageId = $translationOverlay['l10n_parent'];
            $languageId = $translationOverlay['sys_language_uid'];

            try {
                $connection = $this->connectionManager->getConnectionByPageId($pageId, $languageId);
                $connections[$languageId] = $connection;
            } catch (NoSolrConnectionFoundException $e) {
                // ignore the exception as we seek only those connections
                // actually available
            }
        }

        return $connections;
    }
protected function getConnectionsForIndexableLanguages(array $translationOverlays)
    {
        $connections = [];

        foreach ($translationOverlays as $translationOverlay) {
            $pageId = $translationOverlay['l10n_parent'];
            $languageId = $translationOverlay['sys_language_uid'];

            try {
                $connection = $this->connectionManager->getConnectionByPageId($pageId, $languageId);
                $connections[$languageId] = $connection;
            } catch (NoSolrConnectionFoundException $e) {
                // ignore the exception as we seek only those connections
                // actually available
            }
        }

        return $connections;
    }
protected function getConnectionsForIndexableLanguages ( array $ translationOverlays ) { $ connections = [ ] ; foreach ( $ translationOverlays as $ translationOverlay ) { $ pageId = $ translationOverlay [ 'l10n_parent' ] ; $ languageId = $ translationOverlay [ 'sys_language_uid' ] ; try { $ connection = $ this -> connectionManager -> getConnectionByPageId ( $ pageId , $ languageId ) ; $ connections [ $ languageId ] = $ connection ; } catch ( NoSolrConnectionFoundException $ e ) { // ignore the exception as we seek only those connections // actually available } } return $ connections ; }
Checks for which languages connections have been configured and returns
these connections.

@param array $translationOverlays An array of translation overlays to check for configured connections.
@return array An array of ApacheSolrForTypo3\Solr\System\Solr\SolrConnection connections.
Checks for which languages connections have been configured and returns these connections .