Provides an interface for defining a cache context service.
Hierarchy
- interface \Drupal\Core\Cache\Context\CacheContextInterface
File
- core/lib/Drupal/Core/Cache/Context/CacheContextInterface.php, line 8
Namespace
Drupal\Core\Cache\Context
Members
Name | Modifiers | Type | Description |
---|---|---|---|
CacheContextInterface::getCacheableMetadata | public | function | Gets the cacheability metadata for the context. |
CacheContextInterface::getContext | public | function | Returns the string representation of the cache context. |
CacheContextInterface::getLabel | public static | function | Returns the label of the cache context. |
Please login to continue.