router.request_context
Same name and namespace in other branches
- 11.x core/core.services.yml \router.request_context
- 10 core/core.services.yml \router.request_context
- 9 core/core.services.yml \router.request_context
- 8.9.x core/core.services.yml \router.request_context
Class
Drupal\Core\Routing\RequestContextTags
- persist
14 string references to router.request_context
- ExceptionHandlingTest::testRouterContextRestoredAfterErrorPage in core/
tests/ Drupal/ KernelTests/ Core/ Routing/ ExceptionHandlingTest.php - Tests the router context is restored after showing an HTML error page.
- LocalAwareRedirectResponseTrait::getRequestContext in core/
lib/ Drupal/ Core/ Routing/ LocalAwareRedirectResponseTrait.php - Returns the request context.
- MenuLinkContentCacheabilityBubblingTest::testOutboundPathAndRouteProcessing in core/
modules/ menu_link_content/ tests/ src/ Kernel/ MenuLinkContentCacheabilityBubblingTest.php - Tests bubbleable metadata of menu links' outbound route/path processing.
- OpenModalDialogWithUrl::getBaseUrl in core/
lib/ Drupal/ Core/ Ajax/ OpenModalDialogWithUrl.php - Gets the complete base URL.
- PathValidatorTest::testGetUrlIfValidWithoutAccessCheck in core/
tests/ Drupal/ KernelTests/ Core/ Path/ PathValidatorTest.php - Tests getting a Url for CLI and HTTP methods.
File
-
core/
core.services.yml
View source
- class: Drupal\Core\Routing\RequestContext
- tags:
- - { name: persist }
- calls:
- - [fromRequestStack, ['@request_stack']]
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.