public function getAvailableLanguages()
    {
        $translationSiteAccesses = $this->configResolver->getParameter('translation_siteaccesses');
        $relatedSiteAccesses = $translationSiteAccesses ?: $this->configResolver->getParameter('related_siteaccesses');
        $availableLanguages = array();
        $currentLanguages = $this->configResolver->getParameter('languages');
        $availableLanguages[] = array_shift($currentLanguages);

        foreach ($relatedSiteAccesses as $sa) {
            $languages = $this->configResolver->getParameter('languages', null, $sa);
            $availableLanguages[] = array_shift($languages);
        }

        sort($availableLanguages);

        return array_unique($availableLanguages);
    }
public function getAvailableLanguages()
    {
        $translationSiteAccesses = $this->configResolver->getParameter('translation_siteaccesses');
        $relatedSiteAccesses = $translationSiteAccesses ?: $this->configResolver->getParameter('related_siteaccesses');
        $availableLanguages = array();
        $currentLanguages = $this->configResolver->getParameter('languages');
        $availableLanguages[] = array_shift($currentLanguages);

        foreach ($relatedSiteAccesses as $sa) {
            $languages = $this->configResolver->getParameter('languages', null, $sa);
            $availableLanguages[] = array_shift($languages);
        }

        sort($availableLanguages);

        return array_unique($availableLanguages);
    }
public function getAvailableLanguages ( ) { $ translationSiteAccesses = $ this -> configResolver -> getParameter ( 'translation_siteaccesses' ) ; $ relatedSiteAccesses = $ translationSiteAccesses ? : $ this -> configResolver -> getParameter ( 'related_siteaccesses' ) ; $ availableLanguages = array ( ) ; $ currentLanguages = $ this -> configResolver -> getParameter ( 'languages' ) ; $ availableLanguages [ ] = array_shift ( $ currentLanguages ) ; foreach ( $ relatedSiteAccesses as $ sa ) { $ languages = $ this -> configResolver -> getParameter ( 'languages' , null , $ sa ) ; $ availableLanguages [ ] = array_shift ( $ languages ) ; } sort ( $ availableLanguages ) ; return array_unique ( $ availableLanguages ) ; }
Returns the list of all available languages, including the ones configured in related SiteAccesses.

@return array
Returns the list of all available languages including the ones configured in related SiteAccesses .