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

Breadcrumb

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

function RequestStack::pop

Pops the current request from the stack.

This operation lets the current request go out of scope.

This method should generally not be called directly as the stack management should be taken care of by the application itself.

2 calls to RequestStack::pop()
VirtualRequestStack::pop in vendor/symfony/http-kernel/Debug/VirtualRequestStack.php
Pops the current request from the stack.
VirtualRequestStack::pop in vendor/symfony/http-kernel/Debug/VirtualRequestStack.php
Pops the current request from the stack.
1 method overrides RequestStack::pop()
VirtualRequestStack::pop in vendor/symfony/http-kernel/Debug/VirtualRequestStack.php
Pops the current request from the stack.

File

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

Class

RequestStack
Request stack that controls the lifecycle of requests.

Namespace

Symfony\Component\HttpFoundation

Code

public function pop() : ?Request {
    if (!$this->requests) {
        return null;
    }
    return array_pop($this->requests);
}

API Navigation

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