public function CountryCacheContext::__construct in Price 8
Same name and namespace in other branches
- 3.x src/Cache/Context/CountryCacheContext.php \Drupal\price\Cache\Context\CountryCacheContext::__construct()
- 2.0.x src/Cache/Context/CountryCacheContext.php \Drupal\price\Cache\Context\CountryCacheContext::__construct()
- 2.x src/Cache/Context/CountryCacheContext.php \Drupal\price\Cache\Context\CountryCacheContext::__construct()
- 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\ContextCode
public function __construct(CurrentCountry $country) {
$this->currentCountry = $country;
}