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

Breadcrumb

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

function Drupal::requestStack

Retrieves the request stack.

Return value

\Symfony\Component\HttpFoundation\RequestStack The request stack

1 call to Drupal::requestStack()
ViewUI::renderPreview in core/modules/views_ui/src/ViewUI.php

File

core/lib/Drupal.php, line 278

Class

Drupal
Static Service Container wrapper.

Code

public static function requestStack() {
    return static::getContainer()->get('request_stack');
}
RSS feed
Powered by Drupal