variation_cache_factory
Same name and namespace in other branches
- 11.x core/core.services.yml \variation_cache_factory
- 10 core/core.services.yml \variation_cache_factory
Class
Drupal\Core\Cache\VariationCacheFactory8 string references to variation_cache_factory
- BlockViewBuilderTest::assertBlockRenderedWithExpectedCacheability in core/
modules/ block/ tests/ src/ Kernel/ BlockViewBuilderTest.php - Asserts that a block is built/rendered/cached with expected cacheability.
- BlockViewBuilderTest::testBlockViewBuilderCacheOptional in core/
modules/ block/ tests/ src/ Kernel/ BlockViewBuilderTest.php - Tests block render cache handling of cache-optional blocks.
- BlockViewBuilderTest::verifyRenderCacheHandling in core/
modules/ block/ tests/ src/ Kernel/ BlockViewBuilderTest.php - Verifies render cache handling of the block being tested.
- CacheTestTrait::getDefaultVariationCache in core/
modules/ system/ tests/ src/ Traits/ CacheTestTrait.php - Retrieves the default cache backend as a variation cache.
- CacheTestTrait::getRenderVariationCache in core/
modules/ system/ tests/ src/ Traits/ CacheTestTrait.php - Retrieves the render cache backend as a variation cache.
File
-
core/
core.services.yml
View source
- class: Drupal\Core\Cache\VariationCacheFactory
- arguments:
- - '@request_stack'
- - '@cache_factory'
- - '@cache_contexts_manager'
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.