function UncacheableDependencyTrait::getCacheContexts
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Cache/UncacheableDependencyTrait.php \Drupal\Core\Cache\UncacheableDependencyTrait::getCacheContexts()
- 10 core/lib/Drupal/Core/Cache/UncacheableDependencyTrait.php \Drupal\Core\Cache\UncacheableDependencyTrait::getCacheContexts()
- 11.x core/lib/Drupal/Core/Cache/UncacheableDependencyTrait.php \Drupal\Core\Cache\UncacheableDependencyTrait::getCacheContexts()
File
-
core/
lib/ Drupal/ Core/ Cache/ UncacheableDependencyTrait.php, line 17
Class
- UncacheableDependencyTrait
- Trait to implement CacheableDependencyInterface for uncacheable objects.
Namespace
Drupal\Core\CacheCode
public function getCacheContexts() {
return [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.