You are here

public function FacetapiFacetProcessor::getMappedValue in Facet API 6.3

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

Returns the human readable value associated with a raw value.

Parameters

string $value: The raw value passed through the query string.

Return value

string The mapped value.

File

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

Class

FacetapiFacetProcessor
Processes facets, initializes the build.

Code

public function getMappedValue($value) {
  return isset($this->map[$value]) ? $this->map[$value] : array(
    '#value' => $value,
  );
}