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. Search 11.x for cacheContexts
  6. Other projects
Title Object type File name Summary
MenuLinkMock::getCacheContexts function core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php
MenuResourceTestBase::getExpectedCacheContexts function core/modules/system/tests/src/Functional/Rest/MenuResourceTestBase.php
ModerationStateFilter::getCacheContexts function core/modules/content_moderation/src/Plugin/views/filter/ModerationStateFilter.php
NavigationMenuBlock::getCacheContexts function core/modules/navigation/src/Plugin/Block/NavigationMenuBlock.php
Node::getCacheContexts function core/modules/node/src/Plugin/views/argument_default/Node.php
NodeCacheTagsTest::getAdditionalCacheContextsForEntity function core/modules/node/tests/src/Functional/NodeCacheTagsTest.php
NodeCacheTagsTest::getAdditionalCacheContextsForEntityListing function core/modules/node/tests/src/Functional/NodeCacheTagsTest.php
NodeDateArgumentDefaultPluginBase::getCacheContexts function core/modules/node/src/Plugin/views/argument_default/NodeDateArgumentDefaultPluginBase.php
NodeListBuilderTest::testCacheContexts function core/modules/node/tests/src/Kernel/NodeListBuilderTest.php Tests that the correct cache contexts are set.
NodeResourceTestBase::getExpectedCacheContexts function core/modules/node/tests/src/Functional/Rest/NodeResourceTestBase.php
NodeTest::getExpectedCacheContexts function core/modules/jsonapi/tests/src/Functional/NodeTest.php The expected cache contexts for the GET/HEAD response of the test entity.
NodeTranslationUITest::$defaultCacheContexts property core/modules/node/tests/src/Functional/NodeTranslationUITest.php
Permission::getCacheContexts function core/modules/user/src/Plugin/views/access/Permission.php
PlaceholderGenerator::$cacheContextsManager property core/lib/Drupal/Core/Render/PlaceholderGenerator.php The cache contexts manager service.
QueryParameter::getCacheContexts function core/modules/views/src/Plugin/views/argument_default/QueryParameter.php
QueryPluginBase::getCacheContexts function core/modules/views/src/Plugin/views/query/QueryPluginBase.php
Raw::getCacheContexts function core/modules/views/src/Plugin/views/argument_default/Raw.php
RefinableCacheableDependencyInterface::addCacheContexts function core/lib/Drupal/Core/Cache/RefinableCacheableDependencyInterface.php Adds cache contexts.
RefinableCacheableDependencyTrait::addCacheContexts function core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php
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
RendererBase::getCacheContexts function core/modules/views/src/Entity/Render/RendererBase.php
RendererTestBase::$cacheContextsManager property core/tests/Drupal/Tests/Core/Render/RendererTestBase.php The cache contexts manager.
RendererTestBase::setUpMockCacheContextsManager function core/tests/Drupal/Tests/Core/Render/RendererTestBase.php Reinitializes the cache contexts manager as a mock object.
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.
ResponseStatus::getCacheContexts function core/modules/system/src/Plugin/Condition/ResponseStatus.php
RestResourceConfigResourceTestBase::getExpectedCacheContexts function core/modules/rest/tests/src/Functional/Rest/RestResourceConfigResourceTestBase.php
Role::getCacheContexts function core/modules/user/src/Plugin/views/access/Role.php
Serializer::getCacheContexts function core/modules/rest/src/Plugin/views/style/Serializer.php
ShortcutTranslationUITest::$defaultCacheContexts property core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php
SortPluginBase::getCacheContexts function core/modules/views/src/Plugin/views/sort/SortPluginBase.php
SqlBase::getCacheContexts function core/modules/views/src/Plugin/views/pager/SqlBase.php
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
SuperUserAccessPolicy::getPersistentCacheContexts function core/lib/Drupal/Core/Session/SuperUserAccessPolicy.php
SuperUserAccessPolicyTest::testGetPersistentCacheContexts function core/tests/Drupal/Tests/Core/Session/SuperUserAccessPolicyTest.php Tests the getPersistentCacheContexts method.
SystemMenuBlock::getCacheContexts function core/modules/system/src/Plugin/Block/SystemMenuBlock.php
Table::getCacheContexts function core/modules/views/src/Plugin/views/style/Table.php
TermResourceTestBase::getExpectedCacheContexts function core/modules/taxonomy/tests/src/Functional/Rest/TermResourceTestBase.php
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
TestCacheableDependency::getCacheContexts function core/tests/Drupal/Tests/Core/Render/TestCacheableDependency.php
TestCacheBlock::getCacheContexts function core/modules/block/tests/modules/block_test/src/Plugin/Block/TestCacheBlock.php
TestCacheOptionalBlock::getCacheContexts function core/modules/block/tests/modules/block_test/src/Plugin/Block/TestCacheOptionalBlock.php
TestHelpTopicPlugin::getCacheContexts function core/modules/help/tests/modules/help_topics_test/src/Plugin/HelpTopic/TestHelpTopicPlugin.php
TextProcessed::getCacheContexts function core/modules/text/src/TextProcessed.php
Tid::getCacheContexts function core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php
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

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