You are here

public static function MicrositeCacheContext::getLabel in Entity Reference Hierarchy 3.x

Same name and namespace in other branches
  1. 8.2 modules/entity_hierarchy_microsite/src/Cache/MicrositeCacheContext.php \Drupal\entity_hierarchy_microsite\Cache\MicrositeCacheContext::getLabel()

Returns the label of the cache context.

Return value

string The label of the cache context.

Overrides CacheContextInterface::getLabel

File

modules/entity_hierarchy_microsite/src/Cache/MicrositeCacheContext.php, line 59

Class

MicrositeCacheContext
Defines a class for a microsite cache context.

Namespace

Drupal\entity_hierarchy_microsite\Cache

Code

public static function getLabel() {
  return 'Microsite ID';
}