Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
getDefaultLocalePath () | |
setDefaultLocale ($locale) | |
getDefaultLocale () | |
setLocale ($locale=null) | |
getLocale () | |
emulate ($scopeId) | |
revert () | |
Manages locale config information
@api
Definition at line 14 of file ResolverInterface.php.
emulate | ( | $scopeId | ) |
Push current locale to stack and replace with locale from specified scope
int | $scopeId |
Implemented in Resolver, and LocaleResolver.
getDefaultLocale | ( | ) |
getDefaultLocalePath | ( | ) |
getLocale | ( | ) |
revert | ( | ) |
Get last locale, used before last emulation
Implemented in Resolver, and LocaleResolver.
setDefaultLocale | ( | $locale | ) |
Set default locale code
string | $locale |
Implemented in Resolver, and LocaleResolver.
setLocale | ( | $locale = null | ) |
Set locale
string | $locale |
Implemented in Resolver, Resolver, and LocaleResolver.