You are here

public function IndexController::getRequest in Search API 8

Retrieves the current request.

Return value

\Symfony\Component\HttpFoundation\Request|null The current request.

File

src/Controller/IndexController.php, line 65

Class

IndexController
Provides route responses for search indexes.

Namespace

Drupal\search_api\Controller

Code

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