src/Sulu/Component/Content/Repository/ContentRepository.php
private function getLocalesByWebspaceKey($webspaceKey)
    {
        $webspace = $this->webspaceManager->findWebspaceByKey($webspaceKey);

        return array_map(
            function(Localization $localization) {
                return $localization->getLocale();
            },
            $webspace->getAllLocalizations()
        );
    }
private function getLocalesByWebspaceKey($webspaceKey)
    {
        $webspace = $this->webspaceManager->findWebspaceByKey($webspaceKey);

        return array_map(
            function(Localization $localization) {
                return $localization->getLocale();
            },
            $webspace->getAllLocalizations()
        );
    }
private function getLocalesByWebspaceKey ( $ webspaceKey ) { $ webspace = $ this -> webspaceManager -> findWebspaceByKey ( $ webspaceKey ) ; return array_map ( function ( Localization $ localization ) { return $ localization -> getLocale ( ) ; } , $ webspace -> getAllLocalizations ( ) ) ; }
Returns array of locales for given webspace key.

@param string $webspaceKey

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