function ResourceObjectNormalizationCacher::setRequestStack
Same name in other branches
- 10 core/modules/jsonapi/src/EventSubscriber/ResourceObjectNormalizationCacher.php \Drupal\jsonapi\EventSubscriber\ResourceObjectNormalizationCacher::setRequestStack()
Sets the request stack.
Parameters
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
File
-
core/
modules/ jsonapi/ src/ EventSubscriber/ ResourceObjectNormalizationCacher.php, line 80
Class
- ResourceObjectNormalizationCacher
- Caches entity normalizations after the response has been sent.
Namespace
Drupal\jsonapi\EventSubscriberCode
public function setRequestStack(RequestStack $request_stack) {
$this->requestStack = $request_stack;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.