You are here

public static function PirateDayCacheContext::getLabel in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/config/tests/config_override_test/src/Cache/PirateDayCacheContext.php \Drupal\config_override_test\Cache\PirateDayCacheContext::getLabel()
  2. 9 core/modules/config/tests/config_override_test/src/Cache/PirateDayCacheContext.php \Drupal\config_override_test\Cache\PirateDayCacheContext::getLabel()

Returns the label of the cache context.

Return value

string The label of the cache context.

Overrides CacheContextInterface::getLabel

File

core/modules/config/tests/config_override_test/src/Cache/PirateDayCacheContext.php, line 29

Class

PirateDayCacheContext
Defines the PirateDayCacheContext service that allows to cache the booty.

Namespace

Drupal\config_override_test\Cache

Code

public static function getLabel() {
  return t('Pirate day');
}