interface CurrentCountryInterface in Commerce Core 8.2
Holds a reference to the current country, resolved on demand.
Hierarchy
- interface \Drupal\commerce\CurrentCountryInterface
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\commerceView source
interface CurrentCountryInterface {
/**
* Gets the country for the current request.
*
* @return \Drupal\commerce\Country
* The country.
*/
public function getCountry();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CurrentCountryInterface:: |
public | function | Gets the country for the current request. | 1 |