public function FacetapiAdapter::getProcessor in Facet API 7.2
Same name and namespace in other branches
- 6.3 plugins/facetapi/adapter.inc \FacetapiAdapter::getProcessor()
- 7 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 964 - 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;
}
}