You are here

interface CurrentLocaleInterface in Commerce Core 8.2

Holds a reference to the current locale, resolved on demand.

Hierarchy

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\commerce
View source
interface CurrentLocaleInterface {

  /**
   * Gets the locale for the current request.
   *
   * @return \Drupal\commerce\Locale
   *   The locale.
   */
  public function getLocale();

}

Members

Namesort descending Modifiers Type Description Overrides
CurrentLocaleInterface::getLocale public function Gets the locale for the current request. 1