function KernelPreHandle::handle

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php \Drupal\Core\StackMiddleware\KernelPreHandle::handle()
  2. 8.9.x core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php \Drupal\Core\StackMiddleware\KernelPreHandle::handle()
  3. 10 core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php \Drupal\Core\StackMiddleware\KernelPreHandle::handle()

File

core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php, line 45

Class

KernelPreHandle
Prepares the environment after page caching ran.

Namespace

Drupal\Core\StackMiddleware

Code

public function handle(Request $request, $type = self::MAIN_REQUEST, $catch = TRUE) : Response {
    $this->drupalKernel
        ->preHandle($request);
    return $this->httpKernel
        ->handle($request, $type, $catch);
}

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