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

Breadcrumb

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

function VirtualRequestStack::getMainRequest

Overrides RequestStack::getMainRequest

File

vendor/symfony/http-kernel/Debug/VirtualRequestStack.php, line 56

Class

VirtualRequestStack
A stack able to deal with virtual requests.

Namespace

Symfony\Component\HttpKernel\Debug

Code

public function getMainRequest() : ?Request {
    return $this->decorated
        ->getMainRequest() ?? parent::getMainRequest();
}

API Navigation

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