You are here

public function FacetapiFacetProcessor::getQueryString in Facet API 7

Same name and namespace in other branches
  1. 6.3 plugins/facetapi/adapter.inc \FacetapiFacetProcessor::getQueryString()
  2. 7.2 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

array An array containing the query string variables.

See also

FacetapiAdapter::getQueryString()

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 1683
Adapter plugin and adapter related classes.

Class

FacetapiFacetProcessor
Builds base render array used as a starting point for rendering.

Code

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