You are here

public function FacetapiAdapter::getProcessor in Facet API 6.3

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

Returns the processor associates with the facet.

Parameters

string $facet_name: The machine readable name of the facet.

Return value

FacetapiFacetProcessor

File

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

Class

FacetapiAdapter
Abstract class extended by search backends that retrieves facet information from the database.

Code

public function getProcessor($facet_name) {
  if (isset($this->processors[$facet_name])) {
    return $this->processors[$facet_name];
  }
  else {
    return FALSE;
  }
}