You are here

public function ShsTaxonomyIndexTid::__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 TaxonomyIndexTid::__construct

2 calls to ShsTaxonomyIndexTid::__construct()
ShsChosenTaxonomyIndexTid::__construct in modules/shs_chosen/src/Plugin/views/filter/ShsChosenTaxonomyIndexTid.php
Constructs a TaxonomyIndexTid object.
ShsTaxonomyIndexTidDepth::__construct in src/Plugin/views/filter/ShsTaxonomyIndexTidDepth.php
Constructor for the class.
2 methods override ShsTaxonomyIndexTid::__construct()
ShsChosenTaxonomyIndexTid::__construct in modules/shs_chosen/src/Plugin/views/filter/ShsChosenTaxonomyIndexTid.php
Constructs a TaxonomyIndexTid object.
ShsTaxonomyIndexTidDepth::__construct in src/Plugin/views/filter/ShsTaxonomyIndexTidDepth.php
Constructor for the class.

File

src/Plugin/views/filter/ShsTaxonomyIndexTid.php, line 27

Class

ShsTaxonomyIndexTid
Filter by term id using Simple hierarchical select widgets.

Namespace

Drupal\shs\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:taxonomy_index_tid';
}