You are here

public function EntityReferenceFilterAjaxController::__construct in Views Reference Filter 8

Constructs a ViewAjaxController object.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage for views.

\Drupal\views\ViewExecutableFactory $executable_factory: The factory to load a view executable with.

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

\Drupal\Core\Path\CurrentPathStack $current_path: The current path.

\Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination.

\Psr\Log\LoggerInterface $logger_channel: Logger channel.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: Language manager.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: Module handler.

File

src/Controller/EntityReferenceFilterAjaxController.php, line 110

Class

EntityReferenceFilterAjaxController
Defines a controller to build dependent entityreference filters.

Namespace

Drupal\entityreference_filter\Controller

Code

public function __construct(EntityStorageInterface $storage, ViewExecutableFactory $executable_factory, RendererInterface $renderer, CurrentPathStack $current_path, RedirectDestinationInterface $redirect_destination, LoggerInterface $logger_channel, LanguageManagerInterface $language_manager, ModuleHandlerInterface $module_handler) {
  $this->storage = $storage;
  $this->executableFactory = $executable_factory;
  $this->renderer = $renderer;
  $this->currentPath = $current_path;
  $this->redirectDestination = $redirect_destination;
  $this->loggerChannel = $logger_channel;
  $this->languageManager = $language_manager;
  $this->moduleHandler = $module_handler;
}