protected function PageCache::pass in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/page_cache/src/StackMiddleware/PageCache.php \Drupal\page_cache\StackMiddleware\PageCache::pass()
Sidesteps the page cache and directly forwards a request to the backend.
@returns \Symfony\Component\HttpFoundation\Response $response A response object.
Parameters
\Symfony\Component\HttpFoundation\Request $request: A request object.
int $type: The type of the request (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST)
bool $catch: Whether to catch exceptions or not
1 call to PageCache::pass()
- PageCache::handle in core/
modules/ page_cache/ src/ StackMiddleware/ PageCache.php - Handles a Request to convert it to a Response.
File
- core/
modules/ page_cache/ src/ StackMiddleware/ PageCache.php, line 102 - Contains \Drupal\page_cache\StackMiddleware\PageCache.
Class
- PageCache
- Executes the page caching before the main kernel takes over the request.
Namespace
Drupal\page_cache\StackMiddlewareCode
protected function pass(Request $request, $type = self::MASTER_REQUEST, $catch = TRUE) {
return $this->httpKernel
->handle($request, $type, $catch);
}