You are here

public static function Drupal::requestStack in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal.php \Drupal::requestStack()

Retrives the request stack.

Return value

\Symfony\Component\HttpFoundation\RequestStack The request stack

5 calls to Drupal::requestStack()
DrupalTest::testRequestStack in core/tests/Drupal/Tests/Core/DrupalTest.php
Tests the testRequestStack() method.
MenuLinkContentCacheabilityBubblingTest::testOutboundPathAndRouteProcessing in core/modules/menu_link_content/src/Tests/MenuLinkContentCacheabilityBubblingTest.php
Tests bubbleable metadata of menu links' outbound route/path processing.
RouteNoneTest::testProcessOutbound in core/modules/system/src/Tests/RouteProcessor/RouteNoneTest.php
Tests the output process.
RouteProcessorCurrentIntegrationTest::testProcessOutbound in core/modules/system/src/Tests/RouteProcessor/RouteProcessorCurrentIntegrationTest.php
Tests the output process.
ViewUI::renderPreview in core/modules/views_ui/src/ViewUI.php

File

core/lib/Drupal.php, line 227
Contains \Drupal.

Class

Drupal
Static Service Container wrapper.

Code

public static function requestStack() {
  return static::getContainer()
    ->get('request_stack');
}