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\ControllerCode
public function getRequestStack() {
return $this->requestStack ?: \Drupal::service('request_stack');
}