Search for all
| Title | Object type | File name | Summary |
|---|---|---|---|
| CacheCollectorTest::testSetAndGet | function | core/ |
Tests setting and getting values when the cache is empty. |
| CacheCollectorTest::testSetAndGetNull | function | core/ |
Makes sure that NULL is a valid value and is collected. |
| CacheCollectorTest::testUpdateCache | function | core/ |
Tests updating the cache after a set. |
| CacheCollectorTest::testUpdateCacheClear | function | core/ |
Tests a clear of the cache collector. |
| CacheCollectorTest::testUpdateCacheClearTags | function | core/ |
Tests a clear of the cache collector using tags. |
| CacheCollectorTest::testUpdateCacheDelete | function | core/ |
Tests updating the cache after a delete. |
| CacheCollectorTest::testUpdateCacheInvalidatedConflict | function | core/ |
Tests updating the cache when there is a conflict after cache invalidation. |
| CacheCollectorTest::testUpdateCacheLockFail | function | core/ |
Tests updating the cache when the lock acquire fails. |
| CacheCollectorTest::testUpdateCacheMerge | function | core/ |
Tests a cache hit, then item updated by a different request. |
| CacheCollectorTest::testUpdateCacheNoChanges | function | core/ |
Tests updating the cache when no changes were made. |
| CacheCollectorTest::testUpdateCacheRace | function | core/ |
Tests a cache miss, then item created by another request. |
| CacheCollectorTest::testUpdateCacheReset | function | core/ |
Tests a reset of the cache collector. |
| CacheContextInterface | interface | core/ |
Provides an interface for defining a cache context service. |
| CacheContextInterface.php | file | core/ |
|
| CacheContextInterface::getCacheableMetadata | function | core/ |
Gets the cacheability metadata for the context. |
| CacheContextInterface::getContext | function | core/ |
Returns the string representation of the cache context. |
| CacheContextInterface::getLabel | function | core/ |
Returns the label of the cache context. |
| CacheContextOptimizationTest | class | core/ |
Tests the cache context optimization. |
| CacheContextOptimizationTest.php | file | core/ |
|
| CacheContextOptimizationTest::$modules | property | core/ |
Modules to install. |
| CacheContextOptimizationTest::setUp | function | core/ |
|
| CacheContextOptimizationTest::testUserPermissionCacheContextOptimization | function | core/ |
Ensures that 'user.permissions' cache context is able to define cache tags. |
| CacheContextOptimizationTest::testUserRolesCacheContextOptimization | function | core/ |
Ensures that 'user.roles' still works when it is optimized away. |
| 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). |
| CacheContextsManager::parseTokens | function | core/ |
Parses cache context tokens into context IDs and optional parameters. |
| CacheContextsManager::validateTokens | function | core/ |
Validates an array of cache context tokens. |
| CacheContextsManager::__construct | function | core/ |
Constructs a CacheContextsManager object. |
| CacheContextsManagerTest | class | core/ |
Tests Drupal\Core\Cache\Context\CacheContextsManager. |
| CacheContextsManagerTest.php | file | core/ |
|
| CacheContextsManagerTest::getContextsFixture | function | core/ |
|
| CacheContextsManagerTest::getMockContainer | function | core/ |
|
| CacheContextsManagerTest::providerTestInvalidCalculatedContext | function | core/ |
Provides a list of invalid 'baz' cache contexts: the parameter is missing. |
| CacheContextsManagerTest::providerTestOptimizeTokens | function | core/ |
Provides a list of context token sets. |
| CacheContextsManagerTest::testAvailableContextLabels | function | core/ |
|
| CacheContextsManagerTest::testAvailableContextStrings | function | core/ |
|
| CacheContextsManagerTest::testConvertTokensToKeys | function | core/ |
Tests convert tokens to keys. |
| CacheContextsManagerTest::testInvalidCalculatedContext | function | core/ |
Tests invalid calculated context. |
| CacheContextsManagerTest::testInvalidContext | function | core/ |
Tests invalid context. |
| CacheContextsManagerTest::testOptimizeTokens | function | core/ |
Tests optimize tokens. |
| CacheContextsManagerTest::testValidateContexts | function | core/ |
Tests validate contexts. |
Pagination
- Previous page
- Page 145
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.