private function MenuLeaf::getTermUrlAlias in Taxonomy Facets 7.3
Get taxonomy term url alias from term id.
Parameters
integer $tid: The term id
Return value
string Return url alias
1 call to MenuLeaf::getTermUrlAlias()
- MenuLeaf::__construct in classes/
MenuLeaf.php
File
- classes/
MenuLeaf.php, line 43
Class
Namespace
taxonomyFacetsCode
private function getTermUrlAlias() {
$query = db_select('url_alias', 'u')
->fields('u', array(
'alias',
))
->condition('source', 'taxonomy/term/' . $this->tid)
->execute();
$this->urlAlias = current($query
->fetchAll())->alias;
}