You are here

public static function LayoutBuilderIsActiveCacheContext::getLabel in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Cache/LayoutBuilderIsActiveCacheContext.php \Drupal\layout_builder\Cache\LayoutBuilderIsActiveCacheContext::getLabel()

Returns the label of the cache context.

Return value

string The label of the cache context.

Overrides CalculatedCacheContextInterface::getLabel

See also

Cache

File

core/modules/layout_builder/src/Cache/LayoutBuilderIsActiveCacheContext.php, line 42

Class

LayoutBuilderIsActiveCacheContext
Determines whether Layout Builder is active for a given entity type or not.

Namespace

Drupal\layout_builder\Cache

Code

public static function getLabel() {
  return t('Layout Builder');
}