You are here

public function FacetapiAdapter::getProcessor in Facet API 7

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

Returns the processor associated with the facet.

Parameters

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

Return value

FacetapiFacetProcessor|FALSE The instantiated processor object, FALSE if the passed facet is not valid or does not have processor instantiated for it.

File

plugins/facetapi/adapter.inc, line 969
Adapter plugin and adapter related classes.

Class

FacetapiAdapter
Abstract class extended by Facet API adapters.

Code

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