public function FacetapiAdapter::getFacetQuery in Facet API 6.3
Same name and namespace in other branches
- 7.2 plugins/facetapi/adapter.inc \FacetapiAdapter::getFacetQuery()
- 7 plugins/facetapi/adapter.inc \FacetapiAdapter::getFacetQuery()
Returns a registered facet query
Parameters
array|string $facet: The facet definition or facet name.
Return value
FacetapiQueryTypeInterface The instantiated query type plugin.
File
- plugins/
facetapi/ adapter.inc, line 704 - Adapter plugin and adapter related calsses.
Class
- FacetapiAdapter
- Abstract class extended by search backends that retrieves facet information from the database.
Code
public function getFacetQuery($facet) {
$facet_name = is_array($facet) ? $facet['name'] : $facet;
if (isset($this->queryTypes[$facet_name])) {
return $this->queryTypes[$facet_name];
}
}