You are here

public function CountryCacheContext::__construct in Commerce Core 8.2

Constructs a new CountryCacheContext object.

Parameters

\Drupal\commerce\CurrentCountry $country: The current country.

File

src/Cache/Context/CountryCacheContext.php, line 29

Class

CountryCacheContext
Defines the country cache context, for "per country" caching.

Namespace

Drupal\commerce\Cache\Context

Code

public function __construct(CurrentCountry $country) {
  $this->currentCountry = $country;
}