public function FacetapiFacetProcessor::getMappedValue in Facet API 7.2
Same name and namespace in other branches
- 6.3 plugins/facetapi/adapter.inc \FacetapiFacetProcessor::getMappedValue()
- 7 plugins/facetapi/adapter.inc \FacetapiFacetProcessor::getMappedValue()
Maps a facet's index value to a human readable value displayed to the user.
Parameters
string $value: The raw value passed through the query string.
Return value
string The mapped value.
File
- plugins/
facetapi/ adapter.inc, line 1450 - Adapter plugin and adapter related classes.
Class
- FacetapiFacetProcessor
- Builds base render array used as a starting point for rendering.
Code
public function getMappedValue($value) {
return isset($this->map[$value]) ? $this->map[$value] : array(
'#markup' => $value,
);
}