src/Sulu/Component/Content/Repository/ContentRepository.php
private function getLocalesByPortalKey($portalKey)
    {
        $portal = $this->webspaceManager->findPortalByKey($portalKey);

        return array_map(
            function(Localization $localization) {
                return $localization->getLocale();
            },
            $portal->getLocalizations()
        );
    }
private function getLocalesByPortalKey($portalKey)
    {
        $portal = $this->webspaceManager->findPortalByKey($portalKey);

        return array_map(
            function(Localization $localization) {
                return $localization->getLocale();
            },
            $portal->getLocalizations()
        );
    }
private function getLocalesByPortalKey ( $ portalKey ) { $ portal = $ this -> webspaceManager -> findPortalByKey ( $ portalKey ) ; return array_map ( function ( Localization $ localization ) { return $ localization -> getLocale ( ) ; } , $ portal -> getLocalizations ( ) ) ; }
Returns array of locales for given portal key.

@param string $portalKey

@return string[]
Returns array of locales for given portal key .