Retrieves the render cache backend as a variation cache.
This is how Drupal\Core\Render\RenderCache uses the render cache backend.
Return value
\Drupal\Core\Cache\VariationCacheInterface The render cache backend as a variation cache.
1 call to EntityCacheTagsTestBase::getRenderCacheBackend()
- EntityCacheTagsTestBase::verifyRenderCache in core/
modules/ system/ tests/ src/ Functional/ Entity/ EntityCacheTagsTestBase.php - Verify that a given render cache entry exists, with the correct cache tags.
File
- core/
modules/ system/ tests/ src/ Functional/ Entity/ EntityCacheTagsTestBase.php, line 668
Class
- EntityCacheTagsTestBase
- Provides helper methods for Entity cache tags tests.
Namespace
Drupal\Tests\system\Functional\EntityCode
protected function getRenderCacheBackend() {
/** @var \Drupal\Core\Cache\VariationCacheFactoryInterface $variation_cache_factory */
$variation_cache_factory = \Drupal::service('variation_cache_factory');
return $variation_cache_factory
->get('render');
}