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
ToolbarCacheContextsTest::$adminUser2 property core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php An authenticated user to use for testing.
ToolbarCacheContextsTest::$defaultTheme property core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php The theme to install as the default for testing.
ToolbarCacheContextsTest::$modules property core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php Modules to install.
ToolbarCacheContextsTest::$perms property core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php A list of default permissions for test users.
ToolbarCacheContextsTest::assertToolbarCacheContexts function core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php Tests that cache contexts are applied for both users.
ToolbarCacheContextsTest::installExtraModules function core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php Installs a given list of modules and rebuilds the cache.
ToolbarCacheContextsTest::setUp function core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php
ToolbarCacheContextsTest::testCacheIntegration function core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php Tests toolbar cache integration.
ToolbarCacheContextsTest::testToolbarCacheContextsCaller function core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php Tests toolbar cache contexts.
TourResourceTestBase::getExpectedCacheContexts function core/modules/tour/tests/src/Functional/Rest/TourResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
TranslationLanguageRenderer::getCacheContexts function core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php
UncacheableDependencyTrait::getCacheContexts function core/lib/Drupal/Core/Cache/UncacheableDependencyTrait.php
UnchangingCacheableDependencyTrait::getCacheContexts function core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php
User::getCacheContexts function core/modules/user/src/Plugin/views/argument_default/User.php The cache contexts associated with this object.
UserContextAccessPolicy::getPersistentCacheContexts function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Gets the persistent cache contexts.
UserResourceTestBase::getExpectedCacheContexts function core/modules/user/tests/src/Functional/Rest/UserResourceTestBase.php
UserRole::getCacheContexts function core/modules/user/src/Plugin/Condition/UserRole.php
UserRolesAccessPolicy::getPersistentCacheContexts function core/lib/Drupal/Core/Session/UserRolesAccessPolicy.php Gets the persistent cache contexts.
UserRolesAccessPolicyTest::testGetPersistentCacheContexts function core/tests/Drupal/Tests/Core/Session/UserRolesAccessPolicyTest.php Tests the getPersistentCacheContexts method.
UserTest::getExpectedCacheContexts function core/modules/jsonapi/tests/src/Functional/UserTest.php The expected cache contexts for the GET/HEAD response of the test entity.
UserTranslationUITest::$defaultCacheContexts property core/modules/user/tests/src/Functional/UserTranslationUITest.php
VariationCacheTest::$cacheContextsManager property core/tests/Drupal/Tests/Core/Cache/VariationCacheTest.php The mock cache contexts manager.
ViewsExposedFilterBlock::getCacheContexts function core/modules/views/src/Plugin/Block/ViewsExposedFilterBlock.php
ViewsTestCacheContextFilter::getCacheContexts function core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/ViewsTestCacheContextFilter.php
ViewUI::addCacheContexts function core/modules/views_ui/src/ViewUI.php Adds cache contexts.
ViewUI::getCacheContexts function core/modules/views_ui/src/ViewUI.php The cache contexts associated with this object.

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