Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. HttpKernelInterface.php

function HttpKernelInterface::handle

Handles a Request to convert it to a Response.

When $catch is true, the implementation must catch all exceptions and do its best to convert them to a Response instance.

Parameters

int $type The type of the request: (one of HttpKernelInterface::MAIN_REQUEST or HttpKernelInterface::SUB_REQUEST)

bool $catch Whether to catch exceptions or not:

Throws

\Exception When an Exception occurs during processing

17 methods override HttpKernelInterface::handle()
AjaxPageState::handle in core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php
Handles a Request to convert it to a Response.
BanMiddleware::handle in core/modules/ban/src/BanMiddleware.php
Handles a Request to convert it to a Response.
ContentLength::handle in core/modules/big_pipe/src/StackMiddleware/ContentLength.php
Handles a Request to convert it to a Response.
ContentLength::handle in core/lib/Drupal/Core/StackMiddleware/ContentLength.php
Handles a Request to convert it to a Response.
Cors::handle in vendor/asm89/stack-cors/src/Cors.php
Handles a Request to convert it to a Response.

... See full list

File

vendor/symfony/http-kernel/HttpKernelInterface.php, line 39

Class

HttpKernelInterface
HttpKernelInterface handles a Request to convert it to a Response.

Namespace

Symfony\Component\HttpKernel

Code

public function handle(Request $request, int $type = self::MAIN_REQUEST, bool $catch = true) : Response;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal