function KernelEvent::getRequestType

Returns the request type the kernel is currently processing.

Return value

int One of HttpKernelInterface::MASTER_REQUEST and HttpKernelInterface::SUB_REQUEST

File

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

Class

KernelEvent
Symfony 6 bridge.

Namespace

Drupal\Core\Http

Code

public function getRequestType() {
    return $this->requestType;
}

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