You are here

public function SaveSearch::getRequestStack in Search API Saved Searches 8

Retrieves the request stack.

Return value

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

File

src/Plugin/Block/SaveSearch.php, line 146

Class

SaveSearch
Displays the "Save search" form in a block.

Namespace

Drupal\search_api_saved_searches\Plugin\Block

Code

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