You are here

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

Constructs a TaxonomyIndexTid 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.

\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.

Overrides ShsTaxonomyIndexTid::__construct

1 call to ShsChosenTaxonomyIndexTid::__construct()
ShsChosenTaxonomyIndexTidDepth::__construct in modules/shs_chosen/src/Plugin/views/filter/ShsChosenTaxonomyIndexTidDepth.php
Constructor for the class.
1 method overrides ShsChosenTaxonomyIndexTid::__construct()
ShsChosenTaxonomyIndexTidDepth::__construct in modules/shs_chosen/src/Plugin/views/filter/ShsChosenTaxonomyIndexTidDepth.php
Constructor for the class.

File

modules/shs_chosen/src/Plugin/views/filter/ShsChosenTaxonomyIndexTid.php, line 21

Class

ShsChosenTaxonomyIndexTid
Filter by term id using "Simple hierarchical select: chosen" widgets.

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 = NULL) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $vocabulary_storage, $term_storage, $current_user);

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