RegionBundle
class RegionBundle extends RegionDataProvider implements RegionBundleInterface
Default implementation of {@link RegionBundleInterface}.
Methods
__construct(string $path, BundleEntryReaderInterface $reader, LocaleDataProvider $localeProvider)
Creates a new region bundle.
string|null
getCountryName(string $country, string $displayLocale = null)
Returns the name of a country.
string[]
getCountryNames(string $displayLocale = null)
Returns the names of all known countries.
string[]
getLocales()
Returns the list of locales that this bundle supports.
Details
at line line 40
__construct(string $path, BundleEntryReaderInterface $reader, LocaleDataProvider $localeProvider)
Creates a new region bundle.
in RegionDataProvider at line line 50
getRegions()
in RegionDataProvider at line line 55
getName($region, $displayLocale = null)
in RegionDataProvider at line line 64
getNames($displayLocale = null)
at line line 50
string|null
getCountryName(string $country, string $displayLocale = null)
Returns the name of a country.
at line line 62
string[]
getCountryNames(string $displayLocale = null)
Returns the names of all known countries.
at line line 74
string[]
getLocales()
Returns the list of locales that this bundle supports.