You are here

public function FacetapiFacet::setFacet in Facet API 6

Sets facet definition.

Return value

An instance of this class.

File

./facetapi.adapter.inc, line 275
Defines classes used by the FacetAPI module.

Class

FacetapiFacet
Stores facet data, provides methods that build the facet's render array.

Code

public function setFacet(array $facet) {
  $this->_facet = $facet;
  return $this;
}