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

Breadcrumb

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

function RequestStack::getCurrentRequest

2 calls to RequestStack::getCurrentRequest()
VirtualRequestStack::getCurrentRequest in vendor/symfony/http-kernel/Debug/VirtualRequestStack.php
VirtualRequestStack::getCurrentRequest in vendor/symfony/http-kernel/Debug/VirtualRequestStack.php
1 method overrides RequestStack::getCurrentRequest()
VirtualRequestStack::getCurrentRequest in vendor/symfony/http-kernel/Debug/VirtualRequestStack.php

File

vendor/symfony/http-foundation/RequestStack.php, line 67

Class

RequestStack
Request stack that controls the lifecycle of requests.

Namespace

Symfony\Component\HttpFoundation

Code

public function getCurrentRequest() : ?Request {
    return end($this->requests) ?: null;
}

API Navigation

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