You are here

public function TaxonomyIndexMachineName::__construct in Taxonomy Machine Name 8

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.

Overrides HandlerBase::__construct

File

src/Plugin/views/filter/TaxonomyIndexMachineName.php, line 59

Class

TaxonomyIndexMachineName
Filter by term id.

Namespace

Drupal\taxonomy_machine_name\Plugin\views\filter

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, VocabularyStorageInterface $vocabulary_storage, TermStorageInterface $term_storage) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->vocabularyStorage = $vocabulary_storage;
  $this->termStorage = $term_storage;
}