Skip to content
Snippets Groups Projects

Issue #3052574: Facets with AJAX not working in most of situations

@@ -30,6 +30,13 @@ class FacetBlockAjaxController extends ControllerBase {
*/
protected $storage;
/**
- * The renderer.
- *
- * @var \Drupal\Core\Render\RendererInterface
- */
- protected $renderer;
/**
* The current path.
*
@@ -68,6 +75,8 @@ class FacetBlockAjaxController extends ControllerBase {
/**
* Constructs a FacetBlockAjaxController object.
*
* @param \Drupal\Core\Render\RendererInterface $renderer
- * The renderer service.
* @param \Drupal\Core\Path\CurrentPathStack $currentPath
* The current path service.
* @param \Symfony\Component\Routing\RouterInterface $router
@@ -79,8 +88,9 @@ class FacetBlockAjaxController extends ControllerBase {
* @param \Drupal\Core\Block\BlockManager $blockManager
* The block manager service.
*/
public function __construct(CurrentPathStack $currentPath, RouterInterface $router, PathProcessorManager $pathProcessor, CurrentRouteMatch $currentRouteMatch, BlockManager $blockManager) {
public function __construct(RendererInterface $renderer, CurrentPathStack $currentPath, RouterInterface $router, PathProcessorManager $pathProcessor, CurrentRouteMatch $currentRouteMatch, BlockManager $blockManager) {
$this->storage = $this->entityTypeManager()->getStorage('block');
$this->renderer = $renderer;
$this->currentPath = $currentPath;
$this->router = $router;
$this->pathProcessor = $pathProcessor;
@@ -93,6 +103,7 @@ class FacetBlockAjaxController extends ControllerBase {
*/
public static function create(ContainerInterface $container) {
return new static(
- $container->get('renderer'),
$container->get('path.current'),
$container->get('router'),
$container->get('path_processor_manager'),
Loading