function KernelEvent::isMasterRequest

Checks if this is a master request.

Return value

bool True if the request is a master request

File

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

Class

KernelEvent
Symfony 6 bridge.

Namespace

Drupal\Core\Http

Code

public function isMasterRequest() {
    @trigger_error('Symfony\\Component\\HttpKernel\\Event\\KernelEvent::isMasterRequest() is deprecated, use isMainRequest()', E_USER_DEPRECATED);
    return HttpKernelInterface::MASTER_REQUEST === $this->requestType;
}

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