variation_cache_factory

Same name and namespace in other branches
  1. 10 core/core.services.yml \variation_cache_factory

Class

Drupal\Core\Cache\VariationCacheFactory
7 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::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.
CacheWebTest::testCacheOutputOnPage in core/modules/views/tests/src/Functional/Plugin/CacheWebTest.php
Tests the output caching on an actual page.

... See full list

File

core/core.services.yml

View source
  1. class: Drupal\Core\Cache\VariationCacheFactory
  2. arguments:
  3. - '@request_stack'
  4. - '@cache_factory'
  5. - '@cache_contexts_manager'

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