You are here

protected function FacetApiAutocompleteController::restoreRequestStack in Select 2 8

Restore all saved requests on the stack.

1 call to FacetApiAutocompleteController::restoreRequestStack()
FacetApiAutocompleteController::handleAutocomplete in modules/select2_facets/src/Controller/FacetApiAutocompleteController.php
Autocomplete the label of an entity.

File

modules/select2_facets/src/Controller/FacetApiAutocompleteController.php, line 232

Class

FacetApiAutocompleteController
Defines a route controller for facets autocomplete form elements.

Namespace

Drupal\select2_facets\Controller

Code

protected function restoreRequestStack() {
  $this->requestStack
    ->pop();
  foreach ($this->storedRequests as $request) {
    $this->requestStack
      ->push($request);
  }
}