You are here

public function AjaxResponseSubscriber::__construct in Core Views Facets 8

Constructs a AjaxResponseSubscriber object.

Parameters

\Drupal\facets\FacetManager\DefaultFacetManager $facet_manager: The facet manager.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack used to retrieve the current request.

File

src/EventSubscriber/AjaxResponseSubscriber.php, line 41

Class

AjaxResponseSubscriber
Response subscriber to handle AJAX responses.

Namespace

Drupal\core_views_facets\EventSubscriber

Code

public function __construct(DefaultFacetManager $facet_manager, RequestStack $request_stack) {
  $this->facetManager = $facet_manager;
  $this->request = $request_stack
    ->getCurrentRequest();
}