public function WishlistCacheContext::__construct in Commerce Wishlist 8.3
Constructs a new WishlistCacheContext object.
Parameters
\Drupal\Core\Session\AccountInterface $account: The current user account.
\Drupal\commerce_wishlist\WishlistProviderInterface $wishlist_provider: The wishlist provider service.
File
- src/
Cache/ Context/ WishlistCacheContext.php, line 39
Class
- WishlistCacheContext
- Defines the WishlistCacheContext service, for "per wishlist" caching.
Namespace
Drupal\commerce_wishlist\Cache\ContextCode
public function __construct(AccountInterface $account, WishlistProviderInterface $wishlist_provider) {
$this->account = $account;
$this->wishlistProvider = $wishlist_provider;
}