You are here

public function FacetapiAdapter::getFacetPath in Facet API 7.2

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

Helper function that returns the path for a facet link.

Parameters

array $facet: The facet definition as returned by facetapi_facet_load().

array $values: An array containing the item's values being added to or removed from the query string dependent on whether or not the item is active.

int $active: An integer flagging whether the item is active or not.

Return value

string The facet path.

See also

FacetapiUrlProcessor::getFacetPath()

File

plugins/facetapi/adapter.inc, line 1009
Adapter plugin and adapter related classes.

Class

FacetapiAdapter
Abstract class extended by Facet API adapters.

Code

public function getFacetPath(array $facet, array $values, $active) {
  return $this->urlProcessor
    ->getFacetPath($facet, $values, $active);
}