You are here

public static function LayoutBuilderUiCacheContext::getLabel in Drupal 9

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

Returns the label of the cache context.

Return value

string The label of the cache context.

Overrides RouteNameCacheContext::getLabel

File

core/modules/layout_builder/src/Cache/LayoutBuilderUiCacheContext.php, line 20

Class

LayoutBuilderUiCacheContext
Determines if an entity is being viewed in the Layout Builder UI.

Namespace

Drupal\layout_builder\Cache

Code

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