public RequestContext::fromRequestStack(RequestStack $request_stack)
Populates the context from the current request from the request stack.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The current request stack.
public function fromRequestStack(RequestStack $request_stack) { $this->fromRequest($request_stack->getCurrentRequest()); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Routing!RequestContext.php/function/RequestContext::fromRequestStack/8.1.x