You are here

public function EntityReference::__construct in Views Entity Reference Filter 8

Constructs a new instance.

Parameters

mixed[] $configuration: The plugin configuration.

string $plugin_id: The plugin ID.

mixed[] $plugin_definition: The plugin definition.

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

\Drupal\Core\Entity\EntityStorageInterface $target_entity_storage: The target entity storage.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info.

\Drupal\Core\Entity\EntityTypeInterface $target_entity_type: The target entity type.

Overrides HandlerBase::__construct

File

src/Plugin/views/filter/EntityReference.php, line 84

Class

EntityReference
Provides a Views filter for entity reference fields.

Namespace

Drupal\verf\Plugin\views\filter

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, LanguageManagerInterface $language_manager, EntityStorageInterface $target_entity_storage, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityTypeInterface $target_entity_type) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
  $this->targetEntityStorage = $target_entity_storage;
  $this->targetEntityType = $target_entity_type;
  $this->languageManager = $language_manager;
}