public function CurrentLocaleInterface::getLocale in Price 8
Same name and namespace in other branches
- 3.x src/CurrentLocaleInterface.php \Drupal\price\CurrentLocaleInterface::getLocale()
- 2.0.x src/CurrentLocaleInterface.php \Drupal\price\CurrentLocaleInterface::getLocale()
- 2.x src/CurrentLocaleInterface.php \Drupal\price\CurrentLocaleInterface::getLocale()
- 3.0.x src/CurrentLocaleInterface.php \Drupal\price\CurrentLocaleInterface::getLocale()
Gets the locale for the current request.
Return value
\Drupal\price\Locale The locale.
1 method overrides CurrentLocaleInterface::getLocale()
- CurrentLocale::getLocale in src/
CurrentLocale.php - Gets the locale for the current request.
File
- src/
CurrentLocaleInterface.php, line 18
Class
- CurrentLocaleInterface
- Holds a reference to the current locale, resolved on demand.
Namespace
Drupal\priceCode
public function getLocale();