You are here

public static function OgRoleCacheContext::getLabel in Organic groups 8

Returns the label of the cache context.

Return value

string The label of the cache context.

Overrides CacheContextInterface::getLabel

File

src/Cache/Context/OgRoleCacheContext.php, line 82

Class

OgRoleCacheContext
Defines a cache context service for the OG roles of the current user.

Namespace

Drupal\og\Cache\Context

Code

public static function getLabel() {
  return new TranslatableMarkup('OG role');
}