interface CalculatedCacheContextInterface

Provides an interface for defining a calculated cache context service.

Hierarchy

File

core/lib/Drupal/Core/Cache/Context/CalculatedCacheContextInterface.php, line 8

Namespace

Drupal\Core\Cache\Context

Members

Name Modifiers Type Description
CalculatedCacheContextInterface::getCacheableMetadata public function Gets the cacheability metadata for the context based on the parameter value.
CalculatedCacheContextInterface::getContext public function Returns the string representation of the cache context.
CalculatedCacheContextInterface::getLabel public static function Returns the label of the cache context.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Cache!Context!CalculatedCacheContextInterface.php/interface/CalculatedCacheContextInterface/8.1.x