You are here

public function CurrentLocaleInterface::getLocale in Commerce Core 8.2

Gets the locale for the current request.

Return value

\Drupal\commerce\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\commerce

Code

public function getLocale();