You are here

interface CurrentCountryInterface in Commerce Core 8.2

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

Hierarchy

Expanded class hierarchy of CurrentCountryInterface

All classes that implement CurrentCountryInterface

See also

\Drupal\commerce\CurrentCountry

2 files declare their use of CurrentCountryInterface
CustomerProfile.php in modules/order/src/Plugin/Commerce/InlineForm/CustomerProfile.php
DefaultLocaleResolver.php in src/Resolver/DefaultLocaleResolver.php

File

src/CurrentCountryInterface.php, line 10

Namespace

Drupal\commerce
View source
interface CurrentCountryInterface {

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