You are here

public static function PreviewLinkCacheContext::getLabel in Preview Link 8

Same name and namespace in other branches
  1. 2.x src/PreviewLinkCacheContext.php \Drupal\preview_link\PreviewLinkCacheContext::getLabel()
  2. 2.0.x src/PreviewLinkCacheContext.php \Drupal\preview_link\PreviewLinkCacheContext::getLabel()

Returns the label of the cache context.

Return value

string The label of the cache context.

Overrides CacheContextInterface::getLabel

File

src/PreviewLinkCacheContext.php, line 34

Class

PreviewLinkCacheContext
Defines a class for a preview link cache context.

Namespace

Drupal\preview_link

Code

public static function getLabel() {
  return 'Is preview link route';
}