public function getActiveFacetValuesByName($facetName)
    {
        $values = [];
        $activeFacets = $this->getActiveFacets();

        array_map(function($activeFacet) use (&$values, $facetName) {
            $parts = explode(':', $activeFacet, 2);
            if ($parts[0] === $facetName) {
                $values[] = $parts[1];
            }
        }, $activeFacets);

        return $values;
    }
public function getActiveFacetValuesByName($facetName)
    {
        $values = [];
        $activeFacets = $this->getActiveFacets();

        array_map(function($activeFacet) use (&$values, $facetName) {
            $parts = explode(':', $activeFacet, 2);
            if ($parts[0] === $facetName) {
                $values[] = $parts[1];
            }
        }, $activeFacets);

        return $values;
    }
public function getActiveFacetValuesByName ( $ facetName ) { $ values = [ ] ; $ activeFacets = $ this -> getActiveFacets ( ) ; array_map ( function ( $ activeFacet ) use ( & $ values , $ facetName ) { $ parts = explode ( ':' , $ activeFacet , 2 ) ; if ( $ parts [ 0 ] === $ facetName ) { $ values [ ] = $ parts [ 1 ] ; } } , $ activeFacets ) ; return $ values ; }
Returns all facet values for a certain facetName
@param string $facetName
@return array
Returns all facet values for a certain facetName