You are here

public function FacetapiFacetProcessor::getQueryString in Facet API 6.3

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

Helper function that returns the query string variables 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

An array containing the query string variables.

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

File

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

Class

FacetapiFacetProcessor
Processes facets, initializes the build.

Code

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