You are here

public function CurrentLocaleInterface::getLocale in Price 2.x

Same name and namespace in other branches
  1. 8 src/CurrentLocaleInterface.php \Drupal\price\CurrentLocaleInterface::getLocale()
  2. 3.x src/CurrentLocaleInterface.php \Drupal\price\CurrentLocaleInterface::getLocale()
  3. 2.0.x src/CurrentLocaleInterface.php \Drupal\price\CurrentLocaleInterface::getLocale()
  4. 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\price

Code

public function getLocale();