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

Breadcrumb

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

function VirtualRequestStack::getCurrentRequest

Overrides RequestStack::getCurrentRequest

File

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

Class

VirtualRequestStack
A stack able to deal with virtual requests.

Namespace

Symfony\Component\HttpKernel\Debug

Code

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

API Navigation

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