public function Facet::setActiveItem in Facets 8
Sets an item with value to active.
Parameters
string $value: An item that is active.
Overrides FacetInterface::setActiveItem
File
- src/
Entity/ Facet.php, line 641
Class
- Facet
- Defines the facet configuration entity.
Namespace
Drupal\facets\EntityCode
public function setActiveItem($value) {
if (!in_array($value, $this->active_values)) {
$this->active_values[] = $value;
}
}