You are here

interface CurrentCountryInterface in Price 8

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

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

Hierarchy

Expanded class hierarchy of CurrentCountryInterface

All classes that implement CurrentCountryInterface

See also

\Drupal\price\CurrentCountry

1 file declares its use of CurrentCountryInterface
DefaultLocaleResolver.php in src/Resolver/DefaultLocaleResolver.php

File

src/CurrentCountryInterface.php, line 10

Namespace

Drupal\price
View source
interface CurrentCountryInterface {

  /**
   * Gets the country for the current request.
   *
   * @return \Drupal\price\Country
   *   The country.
   */
  public function getCountry();

}

Members

Namesort descending Modifiers Type Description Overrides
CurrentCountryInterface::getCountry public function Gets the country for the current request. 1