You are here

public function FacetBlockAjaxController::__construct in Facets 8

Constructs a FacetBlockAjaxController object.

Parameters

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

\Drupal\Core\Path\CurrentPathStack $currentPath: The current path service.

\Symfony\Component\Routing\RouterInterface $router: The router service.

\Drupal\Core\PathProcessor\PathProcessorManager $pathProcessor: The path processor manager.

\Drupal\Core\Routing\CurrentRouteMatch $currentRouteMatch: The current route match service.

File

src/Controller/FacetBlockAjaxController.php, line 80

Class

FacetBlockAjaxController
Defines a controller to load a facet via AJAX.

Namespace

Drupal\facets\Controller

Code

public function __construct(RendererInterface $renderer, CurrentPathStack $currentPath, RouterInterface $router, PathProcessorManager $pathProcessor, CurrentRouteMatch $currentRouteMatch) {
  $this->storage = $this
    ->entityTypeManager()
    ->getStorage('block');
  $this->renderer = $renderer;
  $this->currentPath = $currentPath;
  $this->router = $router;
  $this->pathProcessor = $pathProcessor;
  $this->currentRouteMatch = $currentRouteMatch;
}