You are here

protected function FacetApiAutocompleteController::createRequestFromPath in Select 2 8

Creates a new request object from a path.

Parameters

string $path: A path with facet arguments.

Return value

\Symfony\Component\HttpFoundation\Request A new request object.

1 call to FacetApiAutocompleteController::createRequestFromPath()
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 208

Class

FacetApiAutocompleteController
Defines a route controller for facets autocomplete form elements.

Namespace

Drupal\select2_facets\Controller

Code

protected function createRequestFromPath($path) {
  $new_request = Request::create($path);
  $processed = $this->pathProcessor
    ->processInbound($path, $new_request);
  $this->currentPathStack
    ->setPath($processed);
  return $new_request;
}