function EntityCacheTagsTestBase::getRenderCacheBackend

Same name in other branches
  1. 10 core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php \Drupal\Tests\system\Functional\Entity\EntityCacheTagsTestBase::getRenderCacheBackend()

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.

Deprecated

in drupal:11.2.0 and is removed from drupal:12.0.0. Use ::getRenderVariationCache() instead, which is inherited from CacheTestTrait.

See also

https://www.drupal.org/node/3508905

File

core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php, line 628

Class

EntityCacheTagsTestBase
Provides helper methods for Entity cache tags tests.

Namespace

Drupal\Tests\system\Functional\Entity

Code

protected function getRenderCacheBackend() {
    return $this->getRenderVariationCache();
}

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