src/Sulu/Bundle/LocationBundle/Content/Types/LocationContentType.php
private function getCountries()
    {
        $countries = [];
        foreach (Intl::getRegionBundle()->getCountryNames() as $countryCode => $countryName) {
            $countries[strtolower($countryCode)] = new PropertyParameter(strtolower($countryCode), $countryName);
        }

        return $countries;
    }
private function getCountries()
    {
        $countries = [];
        foreach (Intl::getRegionBundle()->getCountryNames() as $countryCode => $countryName) {
            $countries[strtolower($countryCode)] = new PropertyParameter(strtolower($countryCode), $countryName);
        }

        return $countries;
    }
private function getCountries ( ) { $ countries = [ ] ; foreach ( Intl :: getRegionBundle ( ) -> getCountryNames ( ) as $ countryCode => $ countryName ) { $ countries [ strtolower ( $ countryCode ) ] = new PropertyParameter ( strtolower ( $ countryCode ) , $ countryName ) ; } return $ countries ; }
Returns array of countries with the country-code as array key.

@return array
Returns array of countries with the country - code as array key .