public function FacetapiAdapter::getFacet in Facet API 6.3
Same name and namespace in other branches
- 6 facetapi.adapter.inc \FacetapiAdapter::getFacet()
- 7.2 plugins/facetapi/adapter.inc \FacetapiAdapter::getFacet()
- 7 plugins/facetapi/adapter.inc \FacetapiAdapter::getFacet()
Returns a FacetapiFacet instance for the facet being rendered.
Parameters
array $facet: The facet definition.
Return value
FacetapiFacet The facet rendering object object.
2 calls to FacetapiAdapter::getFacet()
- FacetapiAdapter::getFacetSettings in plugins/
facetapi/ adapter.inc - Returns realm specific settings for a facet.
- FacetapiAdapter::processFacets in plugins/
facetapi/ adapter.inc - Initializes facet builds, adds breadcrumb trail.
File
- plugins/
facetapi/ adapter.inc, line 688 - Adapter plugin and adapter related calsses.
Class
- FacetapiAdapter
- Abstract class extended by search backends that retrieves facet information from the database.
Code
public function getFacet(array $facet) {
if (!isset($this->facets[$facet['name']])) {
$this->facets[$facet['name']] = new FacetapiFacet($this, $facet);
}
return $this->facets[$facet['name']];
}