You are here

public function ResourceObjectNormalizationCacher::setRenderCache in Drupal 9

Same name and namespace in other branches
  1. 8 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;
}