You are here

CurrentLocaleInterface.php in Commerce Core 8.2

Namespace

Drupal\commerce

File

src/CurrentLocaleInterface.php
View source
<?php

namespace Drupal\commerce;


/**
 * Holds a reference to the current locale, resolved on demand.
 *
 * @see \Drupal\commerce\CurrentLocale
 */
interface CurrentLocaleInterface {

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

}

Interfaces

Namesort descending Description
CurrentLocaleInterface Holds a reference to the current locale, resolved on demand.