Search for cacheContexts

  1. Search 7.x for cacheContexts
  2. Search 8.9.x for cacheContexts
  3. Search 10.3.x for cacheContexts
  4. Search 11.x for cacheContexts
  5. Other projects
Title Object type File name Summary
NodeCacheTagsTest::getAdditionalCacheContextsForEntityListing function core/modules/node/tests/src/Functional/NodeCacheTagsTest.php Returns the additional cache tags for the tested entity's listing by type.
NodeListBuilderTest::testCacheContexts function core/modules/node/tests/src/Kernel/NodeListBuilderTest.php Tests that the correct cache contexts are set.
NodeTranslationUITest::$defaultCacheContexts property core/modules/node/tests/src/Functional/NodeTranslationUITest.php Default cache contexts expected on a non-translated entity.
PathAliasHalJsonTestBase::getExpectedCacheContexts function core/modules/hal/tests/src/Functional/path_alias/PathAliasHalJsonTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
Permission::getCacheContexts function core/modules/user/src/Plugin/views/access/Permission.php The cache contexts associated with this object.
QueryParameter::getCacheContexts function core/modules/views/src/Plugin/views/argument_default/QueryParameter.php The cache contexts associated with this object.
QueryPluginBase::getCacheContexts function core/modules/views/src/Plugin/views/query/QueryPluginBase.php The cache contexts associated with this object.
Raw::getCacheContexts function core/modules/views/src/Plugin/views/argument_default/Raw.php The cache contexts associated with this object.
RdfMappingResourceTestBase::getExpectedCacheContexts function core/modules/rdf/tests/src/Functional/Rest/RdfMappingResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
RefinableCacheableDependencyInterface::addCacheContexts function core/lib/Drupal/Core/Cache/RefinableCacheableDependencyInterface.php Adds cache contexts.
RefinableCacheableDependencyTrait::addCacheContexts function core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php
RenderCache::$cacheContextsManager property core/lib/Drupal/Core/Render/RenderCache.php The cache contexts manager.
RenderCacheIntegrationTest::testBuildRenderableWithCacheContexts function core/modules/views/tests/src/Kernel/RenderCacheIntegrationTest.php Ensure that the view renderable contains the cache contexts.
RenderedEntity::getCacheContexts function core/modules/views/src/Plugin/views/field/RenderedEntity.php The cache contexts associated with this object.
RendererBase::getCacheContexts function core/modules/views/src/Entity/Render/RendererBase.php The cache contexts associated with this object.
RendererTestBase::$cacheContextsManager property core/tests/Drupal/Tests/Core/Render/RendererTestBase.php
RequestPath::getCacheContexts function core/modules/system/src/Plugin/Condition/RequestPath.php
ResourceTestBase::getExpectedCacheContexts function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
RestResourceConfigResourceTestBase::getExpectedCacheContexts function core/modules/rest/tests/src/Functional/Rest/RestResourceConfigResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
Role::getCacheContexts function core/modules/user/src/Plugin/views/access/Role.php The cache contexts associated with this object.
Serializer::getCacheContexts function core/modules/rest/src/Plugin/views/style/Serializer.php The cache contexts associated with this object.
ShortcutHalJsonAnonTest::getExpectedCacheContexts function core/modules/hal/tests/src/Functional/shortcut/ShortcutHalJsonAnonTest.php The expected cache contexts for the GET/HEAD response of the test entity.
ShortcutTranslationUITest::$defaultCacheContexts property core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php Default cache contexts expected on a non-translated entity.
SortPluginBase::getCacheContexts function core/modules/views/src/Plugin/views/sort/SortPluginBase.php The cache contexts associated with this object.
SqlBase::getCacheContexts function core/modules/views/src/Plugin/views/pager/SqlBase.php The cache contexts associated with this object.
Status::getCacheContexts function core/modules/media/src/Plugin/views/filter/Status.php The cache contexts associated with this object.
Status::getCacheContexts function core/modules/node/src/Plugin/views/filter/Status.php The cache contexts associated with this object.
SystemMenuBlock::getCacheContexts function core/modules/system/src/Plugin/Block/SystemMenuBlock.php
Table::getCacheContexts function core/modules/views/src/Plugin/views/style/Table.php The cache contexts associated with this object.
TaxonomyIndexTid::getCacheContexts function core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php The cache contexts associated with this object.
TermResourceTestBase::getExpectedCacheContexts function core/modules/taxonomy/tests/src/Functional/Rest/TermResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
TermTest::getExpectedCacheContexts function core/modules/jsonapi/tests/src/Functional/TermTest.php The expected cache contexts for the GET/HEAD response of the test entity.
TermTranslationUITest::$defaultCacheContexts property core/modules/taxonomy/tests/src/Functional/TermTranslationUITest.php Default cache contexts expected on a non-translated entity.
TestCacheableDependency::getCacheContexts function core/tests/Drupal/Tests/Core/Render/TestCacheableDependency.php The cache contexts associated with this object.
TestCacheBlock::getCacheContexts function core/modules/block/tests/modules/block_test/src/Plugin/Block/TestCacheBlock.php
TestHelpTopicPlugin::getCacheContexts function core/modules/help_topics/tests/modules/help_topics_test/src/Plugin/HelpTopic/TestHelpTopicPlugin.php The cache contexts associated with this object.
TextProcessed::getCacheContexts function core/modules/text/src/TextProcessed.php The cache contexts associated with this object.
Tid::getCacheContexts function core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php The cache contexts associated with this object.
ToolbarCacheContextsTest class core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php Tests the cache contexts for toolbar.
ToolbarCacheContextsTest.php file core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php
ToolbarCacheContextsTest::$adminUser property core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php An authenticated user to use for testing.
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 enable.
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.

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