Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CacheableDependencyTrait.php

function 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

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

Namespace

Drupal\Core\Cache

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal