You are here

interface CurrentLocaleInterface in Price 3.x

Same name and namespace in other branches
  1. 8 src/CurrentLocaleInterface.php \Drupal\price\CurrentLocaleInterface
  2. 2.0.x src/CurrentLocaleInterface.php \Drupal\price\CurrentLocaleInterface
  3. 2.x src/CurrentLocaleInterface.php \Drupal\price\CurrentLocaleInterface
  4. 3.0.x src/CurrentLocaleInterface.php \Drupal\price\CurrentLocaleInterface

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

Hierarchy

Expanded class hierarchy of CurrentLocaleInterface

All classes that implement CurrentLocaleInterface

See also

\Drupal\price\CurrentLocale

2 files declare their use of CurrentLocaleInterface
CurrencyFormatter.php in src/CurrencyFormatter.php
NumberFormatter.php in src/NumberFormatter.php

File

src/CurrentLocaleInterface.php, line 10

Namespace

Drupal\price
View source
interface CurrentLocaleInterface {

  /**
   * Gets the locale for the current request.
   *
   * @return \Drupal\price\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