Search for cacheContexts

  1. Search 7.x for cacheContexts
  2. Search 9.5.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
AssertPageCacheContextsAndTagsTrait trait core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Provides test assertions for testing page-level cache contexts & tags.
AssertPageCacheContextsAndTagsTrait.php file core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php
AssertPageCacheContextsAndTagsTrait::assertCacheContext function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts whether an expected cache context was present in the last response.
AssertPageCacheContextsAndTagsTrait::assertCacheContexts function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Ensures that some cache contexts are present in the current response.
AssertPageCacheContextsAndTagsTrait::assertCacheMaxAge function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts the max age header.
AssertPageCacheContextsAndTagsTrait::assertCacheTags function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Ensures that some cache tags are present in the current response.
AssertPageCacheContextsAndTagsTrait::assertNoCacheContext function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts that a cache context was not present in the last response.
AssertPageCacheContextsAndTagsTrait::assertPageCacheContextsAndTags function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts page cache miss, then hit for the given URL; checks cache headers.
AssertPageCacheContextsAndTagsTrait::debugCacheTags function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Provides debug information for cache tags.
AssertPageCacheContextsAndTagsTrait::enablePageCaching function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Enables page caching.
AssertPageCacheContextsAndTagsTrait::getCacheHeaderValues function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Gets a specific header value as array.
BlockContentHalJsonAnonTest::getExpectedCacheContexts function core/modules/block_content/tests/src/Functional/Hal/BlockContentHalJsonAnonTest.php The expected cache contexts for the GET/HEAD response of the test entity.
ContentTranslationUITestBase::$defaultCacheContexts property core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php Default cache contexts expected on a non-translated entity.
EntityCacheTagsTestBase::getAccessCacheContextsForEntity function core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php Returns the access cache contexts for the tested entity.
EntityCacheTagsTestBase::getAdditionalCacheContextsForEntity function core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php Returns the additional (non-standard) cache contexts for the tested entity.
EntityCacheTagsTestBase::getAdditionalCacheContextsForEntityListing function core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php Returns the additional cache tags for the tested entity's listing by type.
EntityTestHalJsonInternalPropertyNormalizerTest::getExpectedCacheContexts function core/modules/system/tests/modules/entity_test/tests/src/Functional/Hal/EntityTestHalJsonInternalPropertyNormalizerTest.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestLabelHalJsonAnonTest::getExpectedCacheContexts function core/modules/system/tests/modules/entity_test/tests/src/Functional/Hal/EntityTestLabelHalJsonAnonTest.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestMapFieldHalJsonAnonTest::getExpectedCacheContexts function core/modules/system/tests/modules/entity_test/tests/src/Functional/Hal/EntityTestMapFieldHalJsonAnonTest.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityWithUriCacheTagsTestBase::getDefaultCacheContexts function core/modules/system/src/Tests/Entity/EntityWithUriCacheTagsTestBase.php Gets the default cache contexts for rendered entities.
FileHalJsonAnonTest::getExpectedCacheContexts function core/modules/file/tests/src/Functional/Hal/FileHalJsonAnonTest.php The expected cache contexts for the GET/HEAD response of the test entity.
ItemHalJsonTestBase::getExpectedCacheContexts function core/modules/aggregator/tests/src/Functional/Hal/ItemHalJsonTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
MenuLinkContentHalJsonAnonTest::getExpectedCacheContexts function core/modules/menu_link_content/tests/src/Functional/Hal/MenuLinkContentHalJsonAnonTest.php The expected cache contexts for the GET/HEAD response of the test entity.
PathAliasHalJsonTestBase::getExpectedCacheContexts function core/modules/path_alias/tests/src/Functional/Hal/PathAliasHalJsonTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
ShortcutHalJsonAnonTest::getExpectedCacheContexts function core/modules/shortcut/tests/src/Functional/Hal/ShortcutHalJsonAnonTest.php The expected cache contexts for the GET/HEAD response of the test entity.

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