You are here

interface CurrentLocaleInterface in Price 2.x

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

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