You are here

public function CountryCacheContext::__construct in Price 8

Same name and namespace in other branches
  1. 3.x src/Cache/Context/CountryCacheContext.php \Drupal\price\Cache\Context\CountryCacheContext::__construct()
  2. 2.0.x src/Cache/Context/CountryCacheContext.php \Drupal\price\Cache\Context\CountryCacheContext::__construct()
  3. 2.x src/Cache/Context/CountryCacheContext.php \Drupal\price\Cache\Context\CountryCacheContext::__construct()
  4. 3.0.x src/Cache/Context/CountryCacheContext.php \Drupal\price\Cache\Context\CountryCacheContext::__construct()

Constructs a new CountryCacheContext object.

Parameters

\Drupal\price\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\price\Cache\Context

Code

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