You are here

public function FacetapiFacetProcessor::getFacetPath in Facet API 6.3

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

Helper function that returns the path for a facet item.

Parameters

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

The facet path.

1 call to FacetapiFacetProcessor::getFacetPath()
FacetapiFacetProcessor::processQueryStrings in plugins/facetapi/adapter.inc
Initializes the render array's query string variables.

File

plugins/facetapi/adapter.inc, line 1358
Adapter plugin and adapter related calsses.

Class

FacetapiFacetProcessor
Processes facets, initializes the build.

Code

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