Search for cacheContexts
- Search 7.x for cacheContexts
- Search 8.9.x for cacheContexts
- Search 10.3.x for cacheContexts
- Search 11.x for cacheContexts
- Other projects
Title | Object type | File name | Summary |
---|---|---|---|
Access::getCacheContexts | function | core/ |
The cache contexts associated with this object. |
AccessResult::getCacheContexts | function | core/ |
The cache contexts associated with this object. |
AccessResult::resetCacheContexts | function | core/ |
Resets cache contexts (to the empty array). |
AccessResultTest::$cacheContextsManager | property | core/ |
The cache contexts manager. |
AccessResultTest::testCacheContexts | function | core/ |
@covers ::addCacheContexts @covers ::resetCacheContexts @covers ::getCacheContexts @covers ::cachePerPermissions @covers ::cachePerUser @covers ::allowedIfHasPermission |
ArgumentPluginBase::getCacheContexts | function | core/ |
The cache contexts associated with this object. |
AssertPageCacheContextsAndTagsTrait | trait | core/ |
Provides test assertions for testing page-level cache contexts & tags. |
AssertPageCacheContextsAndTagsTrait.php | file | core/ |
|
AssertPageCacheContextsAndTagsTrait::assertCacheContext | function | core/ |
Asserts whether an expected cache context was present in the last response. |
AssertPageCacheContextsAndTagsTrait::assertCacheContexts | function | core/ |
Ensures that some cache contexts are present in the current response. |
AssertPageCacheContextsAndTagsTrait::assertCacheMaxAge | function | core/ |
Asserts the max age header. |
AssertPageCacheContextsAndTagsTrait::assertCacheTags | function | core/ |
Ensures that some cache tags are present in the current response. |
AssertPageCacheContextsAndTagsTrait::assertNoCacheContext | function | core/ |
Asserts that a cache context was not present in the last response. |
AssertPageCacheContextsAndTagsTrait::assertPageCacheContextsAndTags | function | core/ |
Asserts page cache miss, then hit for the given URL; checks cache headers. |
AssertPageCacheContextsAndTagsTrait::enablePageCaching | function | core/ |
Enables page caching. |
AssertPageCacheContextsAndTagsTrait::getCacheHeaderValues | function | core/ |
Gets a specific header value as array. |
BaseFieldOverrideResourceTestBase::getExpectedCacheContexts | function | core/ |
The expected cache contexts for the GET/HEAD response of the test entity. |
BlockContentCacheTagsTest::getAccessCacheContextsForEntity | function | core/ |
|
BlockContentHalJsonAnonTest::getExpectedCacheContexts | function | core/ |
The expected cache contexts for the GET/HEAD response of the test entity. |
BlockContentResourceTestBase::getExpectedCacheContexts | function | core/ |
The expected cache contexts for the GET/HEAD response of the test entity. |
BlockContentTest::getExpectedCacheContexts | function | core/ |
The expected cache contexts for the GET/HEAD response of the test entity. |
BlockContentTranslationUITest::$defaultCacheContexts | property | core/ |
Default cache contexts expected on a non-translated entity. |
BlockResourceTestBase::getExpectedCacheContexts | function | core/ |
The expected cache contexts for the GET/HEAD response of the test entity. |
BlockTest::getExpectedCacheContexts | function | core/ |
The expected cache contexts for the GET/HEAD response of the test entity. |
BookNavigationBlock::getCacheContexts | function | core/ |
|
BreadcrumbFrontCacheContextsTest | class | core/ |
Tests breadcrumbs functionality. |
BreadcrumbFrontCacheContextsTest.php | file | core/ |
|
BreadcrumbFrontCacheContextsTest::$defaultTheme | property | core/ |
The theme to install as the default for testing. |
BreadcrumbFrontCacheContextsTest::$modules | property | core/ |
Modules to enable. |
BreadcrumbFrontCacheContextsTest::$nodeWithAlias | property | core/ |
A test node with path alias. |
BreadcrumbFrontCacheContextsTest::setUp | function | core/ |
|
BreadcrumbFrontCacheContextsTest::testBreadcrumbsFrontPageCache | function | core/ |
Validate that breadcrumb markup get the right cache contexts. |
BulkForm::getCacheContexts | function | core/ |
The cache contexts associated with this object. |
CacheableDependencyInterface::getCacheContexts | function | core/ |
The cache contexts associated with this object. |
CacheableDependencyTrait::$cacheContexts | property | core/ |
Cache contexts. |
CacheableDependencyTrait::getCacheContexts | function | core/ |
|
CacheableMetadata::getCacheContexts | function | core/ |
The cache contexts associated with this object. |
CacheableMetadata::setCacheContexts | function | core/ |
Sets cache contexts. |
CacheableMetadataCalculationTest::getCacheContexts | function | core/ |
The cache contexts associated with this object. |
CacheContextsManager | class | core/ |
Converts cache context tokens into cache keys. |
CacheContextsManager.php | file | core/ |
|
CacheContextsManager::$container | property | core/ |
The service container. |
CacheContextsManager::$contexts | property | core/ |
Available cache context IDs and corresponding labels. |
CacheContextsManager::$validContextTokens | property | core/ |
The set of valid context tokens. |
CacheContextsManager::assertValidTokens | function | core/ |
Asserts the context tokens are valid. |
CacheContextsManager::convertTokensToKeys | function | core/ |
Converts cache context tokens to cache keys. |
CacheContextsManager::getAll | function | core/ |
Provides an array of available cache contexts. |
CacheContextsManager::getLabels | function | core/ |
Provides an array of available cache context labels. |
CacheContextsManager::getService | function | core/ |
Retrieves a cache context service from the container. |
CacheContextsManager::optimizeTokens | function | core/ |
Optimizes cache context tokens (the minimal representative subset). |
Pagination
- Page 1
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.