function PirateDayCacheContext::getLabel

Same name in other branches
  1. 9 core/modules/config/tests/config_override_test/src/Cache/PirateDayCacheContext.php \Drupal\config_override_test\Cache\PirateDayCacheContext::getLabel()
  2. 10 core/modules/config/tests/config_override_test/src/Cache/PirateDayCacheContext.php \Drupal\config_override_test\Cache\PirateDayCacheContext::getLabel()
  3. 11.x core/modules/config/tests/config_override_test/src/Cache/PirateDayCacheContext.php \Drupal\config_override_test\Cache\PirateDayCacheContext::getLabel()

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.