function ResourceObjectNormalizationCacher::setVariationCache

Same name in other branches
  1. 11.x core/modules/jsonapi/src/EventSubscriber/ResourceObjectNormalizationCacher.php \Drupal\jsonapi\EventSubscriber\ResourceObjectNormalizationCacher::setVariationCache()

Sets the variation cache.

Parameters

\Drupal\Core\Cache\VariationCacheInterface $variation_cache: The variation cache.

File

core/modules/jsonapi/src/EventSubscriber/ResourceObjectNormalizationCacher.php, line 70

Class

ResourceObjectNormalizationCacher
Caches entity normalizations after the response has been sent.

Namespace

Drupal\jsonapi\EventSubscriber

Code

public function setVariationCache(VariationCacheInterface $variation_cache) {
    $this->variationCache = $variation_cache;
}

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