You are here

public static function LayoutBuilderIsActiveCacheContext::getLabel in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Cache/LayoutBuilderIsActiveCacheContext.php \Drupal\layout_builder\Cache\LayoutBuilderIsActiveCacheContext::getLabel()
  2. 9 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 44

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');
}