You are here

public function KernelEvent::isMainRequest in Drupal 9

Checks if this is a main request.

Return value

bool True if the request is a main request

File

core/lib/Drupal/Core/Http/KernelEvent.php, line 84

Class

KernelEvent
Symfony 6 bridge.

Namespace

Drupal\Core\Http

Code

public function isMainRequest() {
  return HttpKernelInterface::MASTER_REQUEST === $this->requestType;
}