class RegionBundle extends RegionDataProvider implements RegionBundleInterface
Default implementation of {@link RegionBundleInterface}.
Methods
__construct(string $path, BundleEntryReaderInterface $reader, LocaleDataProvider $localeProvider) Creates a new region bundle. | ||
getRegions() | from RegionDataProvider | |
getName($region, $displayLocale = null) | from RegionDataProvider | |
getNames($displayLocale = null) | from RegionDataProvider | |
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
__construct(string $path, BundleEntryReaderInterface $reader, LocaleDataProvider $localeProvider)
Creates a new region bundle.
getRegions()
getName($region, $displayLocale = null)
getNames($displayLocale = null)
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.
Please login to continue.