public function SelectedFilters::getSelectedFilterTermForVocabulary in Taxonomy Facets 8
File
- src/
SelectedFilters.php, line 107
Class
Namespace
Drupal\taxonomy_facetsCode
public function getSelectedFilterTermForVocabulary($vid) {
foreach ($this->terms as $term) {
if ($term
->getVocabularyId() == $vid) {
return $term;
}
}
return null;
}