diff --git a/core/lib/Drupal/Core/Routing/CurrentRouteMatch.php b/core/lib/Drupal/Core/Routing/CurrentRouteMatch.php index b2774df..c938c2a 100644 --- a/core/lib/Drupal/Core/Routing/CurrentRouteMatch.php +++ b/core/lib/Drupal/Core/Routing/CurrentRouteMatch.php @@ -80,6 +80,12 @@ public function getRawParameters() { return new ParameterBag($parameters); } + /** + * Retrieves the current request object from the request stack. + * + * @return Request|NULL + * The request object. + */ protected function getCurrentRequest() { return $this->requestStack->getCurrentRequest(); }