You are here

public static function MasqueradeCacheContext::getLabel in Masquerade 8.2

Returns the label of the cache context.

Return value

string The label of the cache context.

Overrides CacheContextInterface::getLabel

File

src/Cache/MasqueradeCacheContext.php, line 20

Class

MasqueradeCacheContext
Defines the MasqueradeCacheContext service, for "masquerade" caching.

Namespace

Drupal\masquerade\Cache

Code

public static function getLabel() {
  return new TranslatableMarkup('User is masquerading');
}