public function ResourceObjectNormalizationCacher::setRenderCache in Drupal 8
Same name and namespace in other branches
- 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\EventSubscriberCode
public function setRenderCache(RenderCacheInterface $render_cache) {
$this->renderCache = $render_cache;
}