public function FacetsSummary::removeFacet in Facets 8
Removes a facet from the list.
Parameters
string $facet_id: The facet id to be removed.
Return value
$this
Overrides FacetsSummaryInterface::removeFacet
File
- modules/
facets_summary/ src/ Entity/ FacetsSummary.php, line 165
Class
- FacetsSummary
- Defines the facet summary entity.
Namespace
Drupal\facets_summary\EntityCode
public function removeFacet($facet_id) {
unset($this->facets[$facet_id]);
return $this;
}