public function RedirectMiddleware::handle in Opigno dashboard 3.x
File
- src/
RedirectMiddleware.php, line 45
Class
- RedirectMiddleware
- Executes redirect before the main kernel takes over the request.
Namespace
Drupal\opigno_dashboardCode
public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = TRUE) {
$response = $this->httpKernel
->handle($request, $type, $catch);
return $this->redirectResponse ?: $response;
}