You are here

public function IndexController::getRequestStack in Search API 8

Retrieves the request stack.

Return value

\Symfony\Component\HttpFoundation\RequestStack The request stack.

File

src/Controller/IndexController.php, line 55

Class

IndexController
Provides route responses for search indexes.

Namespace

Drupal\search_api\Controller

Code

public function getRequestStack() {
  return $this->requestStack ?: \Drupal::service('request_stack');
}