You are here

public function CshsTaxonomyIndex::getVocabulary in Client-side Hierarchical Select 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/filter/CshsTaxonomyIndex.php \Drupal\cshs\Plugin\views\filter\CshsTaxonomyIndex::getVocabulary()

Returns the taxonomy vocabulary to work with.

Return value

\Drupal\taxonomy\VocabularyInterface|null The taxonomy vocabulary.

Overrides CshsOptionsFromHelper::getVocabulary

1 call to CshsTaxonomyIndex::getVocabulary()
CshsTaxonomyIndex::valueForm in src/Plugin/views/filter/CshsTaxonomyIndex.php

File

src/Plugin/views/filter/CshsTaxonomyIndex.php, line 130

Class

CshsTaxonomyIndex
Common implementation for "CshsTaxonomyIndex" plugin.

Namespace

Drupal\cshs\Plugin\views\filter

Code

public function getVocabulary() : ?VocabularyInterface {
  return $this->vocabularyStorage
    ->load($this->options['vid']);
}