protected function FacetApiAutocompleteController::overwriteRequestStack in Select 2 8
Resets the request stack and adds one request.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The one and only request.
1 call to FacetApiAutocompleteController::overwriteRequestStack()
- 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 222
Class
- FacetApiAutocompleteController
- Defines a route controller for facets autocomplete form elements.
Namespace
Drupal\select2_facets\ControllerCode
protected function overwriteRequestStack(Request $request) {
while ($this->requestStack
->getCurrentRequest()) {
$this->storedRequests[] = $this->requestStack
->pop();
}
$this->requestStack
->push($request);
}