function ResourceObjectNormalizationCacher::setRenderCache

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

Sets the render cache service.

Parameters

\Drupal\Core\Render\RenderCacheInterface $render_cache: The render cache.

File

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

Class

ResourceObjectNormalizationCacher
Caches entity normalizations after the response has been sent.

Namespace

Drupal\jsonapi\EventSubscriber

Code

public function setRenderCache(RenderCacheInterface $render_cache) {
    $this->renderCache = $render_cache;
}

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