Sulu\Bundle\LocationBundle\Content\Types\LocationContentType::getCountries PHP Метод

getCountries() приватный Метод

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