public function ShsTaxonomyIndexTidDepth::__construct in Simple hierarchical select 2.0.x
Same name and namespace in other branches
- 8 src/Plugin/views/filter/ShsTaxonomyIndexTidDepth.php \Drupal\shs\Plugin\views\filter\ShsTaxonomyIndexTidDepth::__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\Database\Connection $database: The database connection.
\Drupal\Core\Session\AccountInterface $current_user: The current user.
Overrides ShsTaxonomyIndexTid::__construct
File
- src/
Plugin/ views/ filter/ ShsTaxonomyIndexTidDepth.php, line 50
Class
- ShsTaxonomyIndexTidDepth
- Filter handler for taxonomy terms with depth.
Namespace
Drupal\shs\Plugin\views\filterCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, VocabularyStorageInterface $vocabulary_storage, TermStorageInterface $term_storage, Connection $database, AccountInterface $current_user = NULL) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $vocabulary_storage, $term_storage, $current_user);
$this->database = $database;
// Set translation context.
$this->translationContext = 'shs:taxonomy_index_tid_depth';
}