You are here

public function Facet::setOnlyVisibleWhenFacetSourceIsVisible in Facets 8

Sets the "only visible when facet source is visible" boolean flag.

Parameters

bool $only_visible_when_facet_source_is_visible: A boolean flag indicating if the facet should be hidden on a page that does not show the facet source.

Overrides FacetInterface::setOnlyVisibleWhenFacetSourceIsVisible

File

src/Entity/Facet.php, line 895

Class

Facet
Defines the facet configuration entity.

Namespace

Drupal\facets\Entity

Code

public function setOnlyVisibleWhenFacetSourceIsVisible($only_visible_when_facet_source_is_visible) {
  $this->only_visible_when_facet_source_is_visible = $only_visible_when_facet_source_is_visible;
}