You are here

public function Facet::isActiveValue in Facets 8

Checks if a value is active.

Parameters

string $value: The value to be checked.

Return value

bool Is an active value.

Overrides FacetInterface::isActiveValue

File

src/Entity/Facet.php, line 801

Class

Facet
Defines the facet configuration entity.

Namespace

Drupal\facets\Entity

Code

public function isActiveValue($value) {
  $is_active = FALSE;
  if (in_array($value, $this->active_values)) {
    $is_active = TRUE;
  }
  return $is_active;
}