interface CurrentLocaleInterface in Commerce Core 8.2
Holds a reference to the current locale, resolved on demand.
Hierarchy
- interface \Drupal\commerce\CurrentLocaleInterface
Expanded class hierarchy of CurrentLocaleInterface
All classes that implement CurrentLocaleInterface
See also
\Drupal\commerce\CurrentLocale
3 files declare their use of CurrentLocaleInterface
- CurrencyFormatter.php in modules/
price/ src/ CurrencyFormatter.php - NumberFormatter.php in modules/
price/ src/ NumberFormatter.php - PhysicalNumberFormatter.php in modules/
price/ src/ PhysicalNumberFormatter.php
File
- src/
CurrentLocaleInterface.php, line 10
Namespace
Drupal\commerceView source
interface CurrentLocaleInterface {
/**
* Gets the locale for the current request.
*
* @return \Drupal\commerce\Locale
* The locale.
*/
public function getLocale();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CurrentLocaleInterface:: |
public | function | Gets the locale for the current request. | 1 |