protected function getTranslationOverlaysWithConfiguredSite($pageId, Site $site, $defaultLanguageUid, $siteLanguages)
    {
        $translationOverlays = $this->getTranslationOverlaysForPage($pageId, $site->getSysLanguageMode($defaultLanguageUid));

        foreach ($translationOverlays as $key => $translationOverlay) {
            if (!in_array($translationOverlay['sys_language_uid'], $siteLanguages)) {
                unset($translationOverlays[$key]);
            }
        }

        return $translationOverlays;
    }
protected function getTranslationOverlaysWithConfiguredSite($pageId, Site $site, $defaultLanguageUid, $siteLanguages)
    {
        $translationOverlays = $this->getTranslationOverlaysForPage($pageId, $site->getSysLanguageMode($defaultLanguageUid));

        foreach ($translationOverlays as $key => $translationOverlay) {
            if (!in_array($translationOverlay['sys_language_uid'], $siteLanguages)) {
                unset($translationOverlays[$key]);
            }
        }

        return $translationOverlays;
    }
protected function getTranslationOverlaysWithConfiguredSite ( $ pageId , Site $ site , $ defaultLanguageUid , $ siteLanguages ) { $ translationOverlays = $ this -> getTranslationOverlaysForPage ( $ pageId , $ site -> getSysLanguageMode ( $ defaultLanguageUid ) ) ; foreach ( $ translationOverlays as $ key => $ translationOverlay ) { if ( ! in_array ( $ translationOverlay [ 'sys_language_uid' ] , $ siteLanguages ) ) { unset ( $ translationOverlays [ $ key ] ) ; } } return $ translationOverlays ; }
Retrieves only translation overlays where a solr site is configured.

@param int $pageId
@param Site $site
@param int $defaultLanguageUid
@param $siteLanguages
@return array
Retrieves only translation overlays where a solr site is configured .