public function WishlistCacheContext::getContext in Commerce Wishlist 8.3
Returns the string representation of the cache context.
A cache context service's name is used as a token (placeholder) cache key, and is then replaced with the string returned by this method.
Return value
string The string representation of the cache context.
Overrides CacheContextInterface::getContext
File
- src/
Cache/ Context/ WishlistCacheContext.php, line 54
Class
- WishlistCacheContext
- Defines the WishlistCacheContext service, for "per wishlist" caching.
Namespace
Drupal\commerce_wishlist\Cache\ContextCode
public function getContext() {
return implode(':', $this->wishlistProvider
->getWishlistIds($this->account));
}