You are here

public function TaxoFacets::getSelectedFilterForVocabulary in Taxonomy Facets 7.3

File

classes/SelectedFilters.php, line 115

Class

TaxoFacets

Namespace

taxonomyFacets

Code

public function getSelectedFilterForVocabulary($vid) {
  foreach ($this->terms as $term) {
    if ($term->vid == $vid) {
      return $term->tid;
    }
  }
  return null;
}