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
EntityField::getCacheContexts function core/modules/views/src/Plugin/views/field/EntityField.php The cache contexts associated with this object.
EntityFieldRenderer::getCacheContexts function core/modules/views/src/Entity/Render/EntityFieldRenderer.php The cache contexts associated with this object.
EntityFormDisplayResourceTestBase::getExpectedCacheContexts function core/tests/Drupal/FunctionalTests/Rest/EntityFormDisplayResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityListBuilderTest::testCacheContexts function core/modules/system/tests/src/Functional/Entity/EntityListBuilderTest.php Tests that the correct cache contexts are set.
EntityResourceTestBase::getExpectedCacheContexts function core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestComputedFieldNormalizerTest::getExpectedCacheContexts function core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestComputedFieldNormalizerTest.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestComputedFieldTest::getExpectedCacheContexts function core/modules/jsonapi/tests/src/Functional/EntityTestComputedFieldTest.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestHalJsonInternalPropertyNormalizerTest::getExpectedCacheContexts function core/modules/hal/tests/src/Functional/entity_test/EntityTestHalJsonInternalPropertyNormalizerTest.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestJsonInternalPropertyNormalizerTest::getExpectedCacheContexts function core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestJsonInternalPropertyNormalizerTest.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestLabelHalJsonAnonTest::getExpectedCacheContexts function core/modules/hal/tests/src/Functional/entity_test/EntityTestLabelHalJsonAnonTest.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestLabelResourceTestBase::getExpectedCacheContexts function core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestLabelResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestMapFieldHalJsonAnonTest::getExpectedCacheContexts function core/modules/hal/tests/src/Functional/entity_test/EntityTestMapFieldHalJsonAnonTest.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestMapFieldResourceTestBase::getExpectedCacheContexts function core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestMapFieldResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestTextItemNormalizerTest::getExpectedCacheContexts function core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestTextItemNormalizerTest.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityType::getListCacheContexts function core/lib/Drupal/Core/Entity/EntityType.php The list cache contexts associated with this entity type.
EntityTypeInterface::getListCacheContexts function core/lib/Drupal/Core/Entity/EntityTypeInterface.php The list cache contexts associated with this entity type.
EntityUnitTest::testCacheContexts function core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php @covers ::getCacheContexts
@covers ::addCacheContexts
EntityViewDisplayResourceTestBase::getExpectedCacheContexts function core/tests/Drupal/FunctionalTests/Rest/EntityViewDisplayResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityWithUriCacheTagsTestBase::getDefaultCacheContexts function core/modules/system/tests/src/Functional/Entity/EntityWithUriCacheTagsTestBase.php Gets the default cache contexts for rendered entities.
ExposedFormPluginBase::getCacheContexts function core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php The cache contexts associated with this object.
FieldConfigResourceTestBase::getExpectedCacheContexts function core/modules/field/tests/src/Functional/Rest/FieldConfigResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
FileHalJsonAnonTest::getExpectedCacheContexts function core/modules/hal/tests/src/Functional/file/FileHalJsonAnonTest.php The expected cache contexts for the GET/HEAD response of the test entity.
FileResourceTestBase::getExpectedCacheContexts function core/modules/file/tests/src/Functional/Rest/FileResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
FilterPluginBase::getCacheContexts function core/modules/views/src/Plugin/views/filter/FilterPluginBase.php The cache contexts associated with this object.
FilterTestCacheContexts class core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestCacheContexts.php Provides a test filter to associate cache contexts.
FilterTestCacheContexts.php file core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestCacheContexts.php
FilterTestCacheContexts::process function core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestCacheContexts.php Performs the filter processing.
FinishResponseSubscriber::$cacheContextsManager property core/lib/Drupal/Core/EventSubscriber/FinishResponseSubscriber.php The cache contexts manager service.
Fixed::getCacheContexts function core/modules/views/src/Plugin/views/argument_default/Fixed.php The cache contexts associated with this object.
ForumBlockBase::getCacheContexts function core/modules/forum/src/Plugin/Block/ForumBlockBase.php
HelpBlock::getCacheContexts function core/modules/help/src/Plugin/Block/HelpBlock.php
HelpTopicSection::getCacheContexts function core/modules/help_topics/src/Plugin/HelpSection/HelpTopicSection.php
HelpTopicTwig::getCacheContexts function core/modules/help_topics/src/HelpTopicTwig.php The cache contexts associated with this object.
InaccessibleMenuLink::getCacheContexts function core/lib/Drupal/Core/Menu/InaccessibleMenuLink.php The cache contexts associated with this object.
ItemHalJsonTestBase::getExpectedCacheContexts function core/modules/hal/tests/src/Functional/aggregator/ItemHalJsonTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
ItemResourceTestBase::getExpectedCacheContexts function core/modules/aggregator/tests/src/Functional/Rest/ItemResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
LocalActionDefault::getCacheContexts function core/lib/Drupal/Core/Menu/LocalActionDefault.php The cache contexts associated with this object.
LocalTaskDefault::getCacheContexts function core/lib/Drupal/Core/Menu/LocalTaskDefault.php The cache contexts associated with this object.
LoginLogoutMenuLink::getCacheContexts function core/modules/user/src/Plugin/Menu/LoginLogoutMenuLink.php The cache contexts associated with this object.
MediaCacheTagsTest::getAdditionalCacheContextsForEntity function core/modules/media/tests/src/Functional/MediaCacheTagsTest.php Returns the additional (non-standard) cache contexts for the tested entity.
MediaLibraryState::getCacheContexts function core/modules/media_library/src/MediaLibraryState.php The cache contexts associated with this object.
MediaTranslationUITest::$defaultCacheContexts property core/modules/media/tests/src/Functional/MediaTranslationUITest.php Default cache contexts expected on a non-translated entity.
MenuLinkBase::getCacheContexts function core/lib/Drupal/Core/Menu/MenuLinkBase.php The cache contexts associated with this object.
MenuLinkContentHalJsonAnonTest::getExpectedCacheContexts function core/modules/hal/tests/src/Functional/menu_link_content/MenuLinkContentHalJsonAnonTest.php The expected cache contexts for the GET/HEAD response of the test entity.
MenuLinkContentTranslationUITest::$defaultCacheContexts property core/modules/menu_link_content/tests/src/Functional/MenuLinkContentTranslationUITest.php Default cache contexts expected on a non-translated entity.
MenuLinkMock::getCacheContexts function core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php The cache contexts associated with this object.
MenuResourceTestBase::getExpectedCacheContexts function core/modules/system/tests/src/Functional/Rest/MenuResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
ModerationStateFilter::getCacheContexts function core/modules/content_moderation/src/Plugin/views/filter/ModerationStateFilter.php The cache contexts associated with this object.
Node::getCacheContexts function core/modules/node/src/Plugin/views/argument_default/Node.php The cache contexts associated with this object.
NodeCacheTagsTest::getAdditionalCacheContextsForEntity function core/modules/node/tests/src/Functional/NodeCacheTagsTest.php Returns the additional (non-standard) cache contexts for the tested entity.

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