function Drupal::requestStack
Same name in other branches
- 9 core/lib/Drupal.php \Drupal::requestStack()
- 8.9.x core/lib/Drupal.php \Drupal::requestStack()
- 11.x core/lib/Drupal.php \Drupal::requestStack()
Retrieves the request stack.
Return value
\Symfony\Component\HttpFoundation\RequestStack The request stack
6 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/ tests/ src/ Kernel/ MenuLinkContentCacheabilityBubblingTest.php - Tests bubbleable metadata of menu links' outbound route/path processing.
- RouteNoneTest::testProcessOutbound in core/
tests/ Drupal/ KernelTests/ Core/ RouteProcessor/ RouteNoneTest.php - Tests the output process.
- RouteProcessorCurrentIntegrationTest::testProcessOutbound in core/
tests/ Drupal/ KernelTests/ Core/ RouteProcessor/ RouteProcessorCurrentIntegrationTest.php - Tests the output process.
- TokenReplaceKernelTest::testSystemSiteTokenReplacement in core/
modules/ system/ tests/ src/ Kernel/ Token/ TokenReplaceKernelTest.php - Tests the generation of all system site information tokens.
File
-
core/
lib/ Drupal.php, line 278
Class
- Drupal
- Static Service Container wrapper.
Code
public static function requestStack() {
return static::getContainer()->get('request_stack');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.