You are here

public function FacetapiAdapter::getActiveItems in Facet API 6

Same name and namespace in other branches
  1. 6.3 plugins/facetapi/adapter.inc \FacetapiAdapter::getActiveItems()
  2. 7.2 plugins/facetapi/adapter.inc \FacetapiAdapter::getActiveItems()
  3. 7 plugins/facetapi/adapter.inc \FacetapiAdapter::getActiveItems()

Returns a facet's active items.

Parameters

$facet: An array containing the facet definition.

Return value

An array containing the active items.

File

./facetapi.adapter.inc, line 74
Defines classes used by the FacetAPI module.

Class

FacetapiAdapter
Abstract class extended by search backends that retrieves facet information from the database.

Code

public function getActiveItems(array $facet) {
  return $this
    ->getFacet($facet)
    ->getActiveItems();
}