Symfony\Component\Locale\Locale::getDisplayCountries
Returns the country names for a locale
Signature
public function getDisplayCountries(string
$locale )
Parameters
$locale
— string- The locale to use for the country names
Returns
- array
- The country names with their codes as keys
Errors/Exceptions
-
RuntimeException
- When the resource bundles cannot be loaded