You are here

public static function OgGroupContextCacheContext::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/OgGroupContextCacheContext.php, line 48

Class

OgGroupContextCacheContext
Defines a cache context service for the currently active group.

Namespace

Drupal\og\Cache\Context

Code

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