public function StoreCacheContext::__construct in Commerce Core 8.2
Constructs a new StoreCacheContext class.
Parameters
\Drupal\commerce_store\CurrentStoreInterface $current_store: The current store.
File
- modules/
store/ src/ Cache/ Context/ StoreCacheContext.php, line 29
Class
- StoreCacheContext
- Defines the StoreCacheContext service, for "per store" caching.
Namespace
Drupal\commerce_store\Cache\ContextCode
public function __construct(CurrentStoreInterface $current_store) {
$this->currentStore = $current_store;
}