Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Framework\Locale\ConfigInterface $config, \Magento\Framework\Locale\ResolverInterface $localeResolver, $locale=null) | |
getOptionLocales () | |
getTranslatedOptionLocales () | |
getOptionTimezones () | |
getOptionWeekdays ($preserveCodes=false, $ucFirstCode=false) | |
getOptionCountries () | |
getOptionCurrencies () | |
getOptionAllCurrencies () | |
getCountryTranslation ($value, $locale=null) | |
Protected Member Functions | |
_getOptionLocales ($translatedName=false) | |
_sortOptionArray ($option) | |
Protected Attributes | |
$_config | |
$localeResolver | |
Definition at line 14 of file TranslatedLists.php.
__construct | ( | \Magento\Framework\Locale\ConfigInterface | $config, |
\Magento\Framework\Locale\ResolverInterface | $localeResolver, | ||
$locale = null |
|||
) |
\Magento\Framework\Locale\ConfigInterface | $config | |
\Magento\Framework\Locale\ResolverInterface | $localeResolver | |
string | $locale |
Definition at line 31 of file TranslatedLists.php.
|
protected |
Get options array for locale dropdown
bool | $translatedName | translation flag |
Definition at line 66 of file TranslatedLists.php.
|
protected |
getCountryTranslation | ( | $value, | |
$locale = null |
|||
) |
Returns the localized country name
string | $value | Name to get detailed information about |
string | $locale | Optional locale string |
Implements ListsInterface.
Definition at line 199 of file TranslatedLists.php.
getOptionAllCurrencies | ( | ) |
Retrieve all currency option list
Implements ListsInterface.
Definition at line 165 of file TranslatedLists.php.
getOptionCountries | ( | ) |
Retrieve country option list
Implements ListsInterface.
Definition at line 135 of file TranslatedLists.php.
getOptionCurrencies | ( | ) |
Retrieve currency option list
Implements ListsInterface.
Definition at line 148 of file TranslatedLists.php.
getOptionLocales | ( | ) |
Get array of deployed locales.Function result has next format:
Implements OptionInterface.
Definition at line 46 of file TranslatedLists.php.
getOptionTimezones | ( | ) |
Retrieve timezone option list
Implements ListsInterface.
Definition at line 101 of file TranslatedLists.php.
Retrieve days of week option list
bool | $preserveCodes | |
bool | $ucFirstCode |
Implements ListsInterface.
Definition at line 119 of file TranslatedLists.php.
getTranslatedOptionLocales | ( | ) |
Get array of deployed locales with translation.Function result has next format:
Implements OptionInterface.
Definition at line 54 of file TranslatedLists.php.
|
protected |
Definition at line 19 of file TranslatedLists.php.
|
protected |
Definition at line 24 of file TranslatedLists.php.