You are here

public function Js::getRequest in JS Callback Handler 8.3

The current request.

Return value

\Symfony\Component\HttpFoundation\Request

1 call to Js::getRequest()
Js::isExecuting in src/Js.php
Indicates if the current request is executing a JS Callback.

File

src/Js.php, line 469

Class

Js
JS Callback Handler service.

Namespace

Drupal\js

Code

public function getRequest() {
  return $this->requestStack
    ->getCurrentRequest();
}