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

Breadcrumb

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

function KernelEvent::isMainRequest

Checks if this is the main request.

File

vendor/symfony/http-kernel/Event/KernelEvent.php, line 66

Class

KernelEvent
Base class for events dispatched in the HttpKernel component.

Namespace

Symfony\Component\HttpKernel\Event

Code

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

API Navigation

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