public function IsCurrentUserPageCacheContext::getContext in Opigno dashboard 3.x
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/ IsCurrentUserPageCacheContext.php, line 54
Class
- IsCurrentUserPageCacheContext
- Defines a cache context for whether the URL is the current user page.
Namespace
Drupal\opigno_dashboard\Cache\ContextCode
public function getContext() {
return 'is_current_user_page_.' . (int) $this->isUserPage;
}