Search for all

  1. Search 7.x for all
  2. Search 9.5.x for all
  3. Search 8.9.x for all
  4. Search 10.3.x for all
  5. Other projects
Title Object type File name Summary
CacheCollectorTest::testSetAndGet function core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php Tests setting and getting values when the cache is empty.
CacheCollectorTest::testSetAndGetNull function core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php Makes sure that NULL is a valid value and is collected.
CacheCollectorTest::testUpdateCache function core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php Tests updating the cache after a set.
CacheCollectorTest::testUpdateCacheClear function core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php Tests a clear of the cache collector.
CacheCollectorTest::testUpdateCacheClearTags function core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php Tests a clear of the cache collector using tags.
CacheCollectorTest::testUpdateCacheDelete function core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php Tests updating the cache after a delete.
CacheCollectorTest::testUpdateCacheInvalidatedConflict function core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php Tests updating the cache when there is a conflict after cache invalidation.
CacheCollectorTest::testUpdateCacheLockFail function core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php Tests updating the cache when the lock acquire fails.
CacheCollectorTest::testUpdateCacheMerge function core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php Tests a cache hit, then item updated by a different request.
CacheCollectorTest::testUpdateCacheNoChanges function core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php Tests updating the cache when no changes were made.
CacheCollectorTest::testUpdateCacheRace function core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php Tests a cache miss, then item created by another request.
CacheCollectorTest::testUpdateCacheReset function core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php Tests a reset of the cache collector.
CacheContextInterface interface core/lib/Drupal/Core/Cache/Context/CacheContextInterface.php Provides an interface for defining a cache context service.
CacheContextInterface.php file core/lib/Drupal/Core/Cache/Context/CacheContextInterface.php
CacheContextInterface::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/CacheContextInterface.php Gets the cacheability metadata for the context.
CacheContextInterface::getContext function core/lib/Drupal/Core/Cache/Context/CacheContextInterface.php Returns the string representation of the cache context.
CacheContextInterface::getLabel function core/lib/Drupal/Core/Cache/Context/CacheContextInterface.php Returns the label of the cache context.
CacheContextOptimizationTest class core/tests/Drupal/KernelTests/Core/Cache/CacheContextOptimizationTest.php Tests the cache context optimization.
CacheContextOptimizationTest.php file core/tests/Drupal/KernelTests/Core/Cache/CacheContextOptimizationTest.php
CacheContextOptimizationTest::$modules property core/tests/Drupal/KernelTests/Core/Cache/CacheContextOptimizationTest.php Modules to install.
CacheContextOptimizationTest::setUp function core/tests/Drupal/KernelTests/Core/Cache/CacheContextOptimizationTest.php
CacheContextOptimizationTest::testUserPermissionCacheContextOptimization function core/tests/Drupal/KernelTests/Core/Cache/CacheContextOptimizationTest.php Ensures that 'user.permissions' cache context is able to define cache tags.
CacheContextOptimizationTest::testUserRolesCacheContextOptimization function core/tests/Drupal/KernelTests/Core/Cache/CacheContextOptimizationTest.php Ensures that 'user.roles' still works when it is optimized away.
CacheContextsManager class core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Converts cache context tokens into cache keys.
CacheContextsManager.php file core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php
CacheContextsManager::$container property core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php The service container.
CacheContextsManager::$contexts property core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Available cache context IDs and corresponding labels.
CacheContextsManager::$validContextTokens property core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php The set of valid context tokens.
CacheContextsManager::assertValidTokens function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Asserts the context tokens are valid.
CacheContextsManager::convertTokensToKeys function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Converts cache context tokens to cache keys.
CacheContextsManager::getAll function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Provides an array of available cache contexts.
CacheContextsManager::getLabels function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Provides an array of available cache context labels.
CacheContextsManager::getService function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Retrieves a cache context service from the container.
CacheContextsManager::optimizeTokens function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Optimizes cache context tokens (the minimal representative subset).
CacheContextsManager::parseTokens function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Parses cache context tokens into context IDs and optional parameters.
CacheContextsManager::validateTokens function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Validates an array of cache context tokens.
CacheContextsManager::__construct function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Constructs a CacheContextsManager object.
CacheContextsManagerTest class core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Tests Drupal\Core\Cache\Context\CacheContextsManager.
CacheContextsManagerTest.php file core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
CacheContextsManagerTest::getContextsFixture function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
CacheContextsManagerTest::getMockContainer function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
CacheContextsManagerTest::providerTestInvalidCalculatedContext function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Provides a list of invalid 'baz' cache contexts: the parameter is missing.
CacheContextsManagerTest::providerTestOptimizeTokens function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Provides a list of context token sets.
CacheContextsManagerTest::testAvailableContextLabels function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
CacheContextsManagerTest::testAvailableContextStrings function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
CacheContextsManagerTest::testConvertTokensToKeys function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Tests convert tokens to keys.
CacheContextsManagerTest::testInvalidCalculatedContext function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Tests invalid calculated context.
CacheContextsManagerTest::testInvalidContext function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Tests invalid context.
CacheContextsManagerTest::testOptimizeTokens function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Tests optimize tokens.
CacheContextsManagerTest::testValidateContexts function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Tests validate contexts.

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