You are here

public function Result::getFacet in Facets 8

Returns the facet related to the result.

Return value

\Drupal\facets\FacetInterface The facet related to the result.

Overrides ResultInterface::getFacet

File

src/Result/Result.php, line 176

Class

Result
The default implementation of the result interfaces.

Namespace

Drupal\facets\Result

Code

public function getFacet() {
  return $this->facet;
}