public function DefaultFacetManager::returnProcessedFacet in Facets 8
Returns one of the processed facets.
Returns one of the processed facets, this is a facet with filled results. Keep in mind that if you want to have the facet's build processor executed, there needs to be an extra call to the FacetManager::build with the facet returned here as argument.
Parameters
\Drupal\facets\FacetInterface $facet: The facet to process.
Return value
\Drupal\facets\FacetInterface|null The updated facet if it exists, NULL otherwise.
File
- src/
FacetManager/ DefaultFacetManager.php, line 395
Class
- DefaultFacetManager
- The facet manager.
Namespace
Drupal\facets\FacetManagerCode
public function returnProcessedFacet(FacetInterface $facet) {
$this
->processFacets($facet
->getFacetSourceId());
return !empty($this->facets[$facet
->id()]) ? $this->facets[$facet
->id()] : NULL;
}