You are here

public function EntityReferenceFilterViewResult::__construct in Views Reference Filter 8

Constructs a EntityReferenceFilterViewResult object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

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

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

\Drupal\Core\Config\Entity\ConfigEntityStorageInterface $view_storage: View config storage.

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: Entity repository.

\Drupal\Core\Path\CurrentPathStack $path_current: Path current.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager.

Overrides HandlerBase::__construct

File

src/Plugin/views/filter/EntityReferenceFilterViewResult.php, line 104

Class

EntityReferenceFilterViewResult
Filter by entity id using items got from the another view..

Namespace

Drupal\entityreference_filter\Plugin\views\filter

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, LoggerInterface $logger_channel, LanguageManagerInterface $language_manager, ConfigEntityStorageInterface $view_storage, EntityRepositoryInterface $entity_repository, CurrentPathStack $path_current, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->loggerChannel = $logger_channel;
  $this->languageManager = $language_manager;
  $this->viewStorage = $view_storage;
  $this->entityRepository = $entity_repository;
  $this->pathCurrent = $path_current;
  $this->entityTypeManager = $entity_type_manager;
}