You are here

public function ShsChosenTaxonomyIndexTidDepth::__construct in Simple hierarchical select 2.0.x

Same name and namespace in other branches
  1. 8 modules/shs_chosen/src/Plugin/views/filter/ShsChosenTaxonomyIndexTidDepth.php \Drupal\shs_chosen\Plugin\views\filter\ShsChosenTaxonomyIndexTidDepth::__construct()

Constructor for the class.

Parameters

array $configuration: The configuration array.

string $plugin_id: The Plugin id.

mixed $plugin_definition: The Plugin definition.

\Drupal\taxonomy\VocabularyStorageInterface $vocabulary_storage: The vocabulary storage.

\Drupal\taxonomy\TermStorageInterface $term_storage: The term storage.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

\Drupal\Core\Database\Connection $database: The database connection.

Overrides ShsChosenTaxonomyIndexTid::__construct

File

modules/shs_chosen/src/Plugin/views/filter/ShsChosenTaxonomyIndexTidDepth.php, line 49

Class

ShsChosenTaxonomyIndexTidDepth
Filter handler for taxonomy terms with depth.

Namespace

Drupal\shs_chosen\Plugin\views\filter

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, VocabularyStorageInterface $vocabulary_storage, TermStorageInterface $term_storage, AccountInterface $current_user, Connection $database) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $vocabulary_storage, $term_storage, $current_user);
  $this->database = $database;

  // Set translation context.
  $this->translationContext = 'shs_chosen:taxonomy_index_tid_depth';
}