You are here

public function CacheableDependencyTrait::getCacheContexts in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php \Drupal\Core\Cache\CacheableDependencyTrait::getCacheContexts()
  2. 9 core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php \Drupal\Core\Cache\CacheableDependencyTrait::getCacheContexts()

File

core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php, line 56

Class

CacheableDependencyTrait
Trait for \Drupal\Core\Cache\CacheableDependencyInterface.

Namespace

Drupal\Core\Cache

Code

public function getCacheContexts() {
  return $this->cacheContexts;
}