Search for cacheContexts

  1. Search 7.x for cacheContexts
  2. Search 9.5.x for cacheContexts
  3. Search 8.9.x for cacheContexts
  4. Search 10.3.x for cacheContexts
  5. Other projects
Title Object type File name Summary
CacheContextsManager::$contexts property core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Available cache context IDs and corresponding labels.
CacheContextsManager::$validContextTokens property core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php The set of valid context tokens.
CacheContextsManager::assertValidTokens function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Asserts the context tokens are valid.
CacheContextsManager::convertTokensToKeys function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Converts cache context tokens to cache keys.
CacheContextsManager::getAll function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Provides an array of available cache contexts.
CacheContextsManager::getLabels function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Provides an array of available cache context labels.
CacheContextsManager::getService function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Retrieves a cache context service from the container.
CacheContextsManager::optimizeTokens function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Optimizes cache context tokens (the minimal representative subset).
CacheContextsManager::parseTokens function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Parses cache context tokens into context IDs and optional parameters.
CacheContextsManager::validateTokens function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Validates an array of cache context tokens.
CacheContextsManager::__construct function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Constructs a CacheContextsManager object.
CacheContextsManagerTest class core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php @coversDefaultClass \Drupal\Core\Cache\Context\CacheContextsManager
@group Cache
CacheContextsManagerTest.php file core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
CacheContextsManagerTest::getContextsFixture function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
CacheContextsManagerTest::getMockContainer function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
CacheContextsManagerTest::providerTestInvalidCalculatedContext function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Provides a list of invalid 'baz' cache contexts: the parameter is missing.
CacheContextsManagerTest::providerTestOptimizeTokens function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Provides a list of context token sets.
CacheContextsManagerTest::testAvailableContextLabels function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
CacheContextsManagerTest::testAvailableContextStrings function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
CacheContextsManagerTest::testConvertTokensToKeys function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php @covers ::convertTokensToKeys
CacheContextsManagerTest::testInvalidCalculatedContext function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php @covers ::convertTokensToKeys
CacheContextsManagerTest::testInvalidContext function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php @covers ::convertTokensToKeys
CacheContextsManagerTest::testOptimizeTokens function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php @covers ::optimizeTokens
CacheContextsManagerTest::testValidateContexts function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php @covers ::validateTokens
CacheContextsManagerTest::validateTokensProvider function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Provides a list of cache context token arrays.
CacheContextsPass class core/lib/Drupal/Core/Cache/Context/CacheContextsPass.php Adds cache_contexts parameter to the container.
CacheContextsPass.php file core/lib/Drupal/Core/Cache/Context/CacheContextsPass.php
CacheContextsPass::process function core/lib/Drupal/Core/Cache/Context/CacheContextsPass.php Implements CompilerPassInterface::process().
CacheTest::mergeCacheContextsProvide function core/tests/Drupal/Tests/Core/Cache/CacheTest.php Provides a list of pairs of cache contexts arrays to be merged.
CacheTest::testMergeCacheContexts function core/tests/Drupal/Tests/Core/Cache/CacheTest.php @covers ::mergeContexts
CommentCacheTagsTest::getAdditionalCacheContextsForEntity function core/modules/comment/tests/src/Functional/CommentCacheTagsTest.php
CommentCacheTagsTest::getDefaultCacheContexts function core/modules/comment/tests/src/Functional/CommentCacheTagsTest.php
CommentResourceTestBase::getExpectedCacheContexts function core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php
CommentTest::getExpectedCacheContexts function core/modules/jsonapi/tests/src/Functional/CommentTest.php
CommentTranslationUITest::$defaultCacheContexts property core/modules/comment/tests/src/Functional/CommentTranslationUITest.php
ComputedString::getCacheContexts function core/modules/system/tests/modules/entity_test/src/TypedData/ComputedString.php
ConfigBase::getCacheContexts function core/lib/Drupal/Core/Config/ConfigBase.php
ConfigurableLanguageResourceTestBase::getExpectedCacheContexts function core/modules/language/tests/src/Functional/Rest/ConfigurableLanguageResourceTestBase.php
ConfigurableLanguageTest::getExpectedCacheContexts function core/modules/jsonapi/tests/src/Functional/ConfigurableLanguageTest.php
ContentLanguageSettingsResourceTestBase::getExpectedCacheContexts function core/modules/language/tests/src/Functional/Rest/ContentLanguageSettingsResourceTestBase.php
ContentLanguageSettingsTest::getExpectedCacheContexts function core/modules/jsonapi/tests/src/Functional/ContentLanguageSettingsTest.php
ContentTestTranslationUITest::$defaultCacheContexts property core/modules/content_translation/tests/src/Functional/ContentTestTranslationUITest.php
ContentTranslationManageAccessCheckTest::$cacheContextsManager property core/modules/content_translation/tests/src/Unit/Access/ContentTranslationManageAccessCheckTest.php The cache contexts manager.
ContentTranslationUITestBase::$defaultCacheContexts property core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php Default cache contexts expected on a non-translated entity.
Context::getCacheContexts function core/lib/Drupal/Core/Plugin/Context/Context.php
ContextAwarePluginTrait::getCacheContexts function core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php
Current::getCacheContexts function core/modules/user/src/Plugin/views/filter/Current.php
CurrentThemeCondition::getCacheContexts function core/modules/system/src/Plugin/Condition/CurrentThemeCondition.php
CurrentUser::getCacheContexts function core/modules/user/src/Plugin/views/argument_default/CurrentUser.php
DefaultPluginManager::getCacheContexts function core/lib/Drupal/Core/Plugin/DefaultPluginManager.php

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.