function CacheableDependencyTrait::getCacheContexts
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php \Drupal\Core\Cache\CacheableDependencyTrait::getCacheContexts()
- 10 core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php \Drupal\Core\Cache\CacheableDependencyTrait::getCacheContexts()
- 11.x core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php \Drupal\Core\Cache\CacheableDependencyTrait::getCacheContexts()
4 methods override CacheableDependencyTrait::getCacheContexts()
- AccessResult::getCacheContexts in core/
lib/ Drupal/ Core/ Access/ AccessResult.php - The cache contexts associated with this object.
- CacheableMetadata::getCacheContexts in core/
lib/ Drupal/ Core/ Cache/ CacheableMetadata.php - The cache contexts associated with this object.
- ConfigBase::getCacheContexts in core/
lib/ Drupal/ Core/ Config/ ConfigBase.php - The cache contexts associated with this object.
- EntityBase::getCacheContexts in core/
lib/ Drupal/ Core/ Entity/ EntityBase.php - The cache contexts associated with this object.
File
-
core/
lib/ Drupal/ Core/ Cache/ CacheableDependencyTrait.php, line 56
Class
Namespace
Drupal\Core\CacheCode
public function getCacheContexts() {
return $this->cacheContexts;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.