public function visitBuilder(FacetBuilder $facetBuilder, $fieldId)
    {
        foreach ($this->visitors as $visitor) {
            if ($visitor->canVisit($facetBuilder)) {
                return $visitor instanceof FacetFieldVisitor ?
                    $visitor->visitBuilder($facetBuilder, $fieldId) :
                    $visitor->visit($facetBuilder);
            }
        }

        // Ignore unsupported FacetBuilders, don't block the query for it
        // ref: https://github.com/ezsystems/ezpublish-kernel/commit/435624d6fb8aa03ec219818ff7cb6755944b8d7b
        return [];
    }
public function visitBuilder(FacetBuilder $facetBuilder, $fieldId)
    {
        foreach ($this->visitors as $visitor) {
            if ($visitor->canVisit($facetBuilder)) {
                return $visitor instanceof FacetFieldVisitor ?
                    $visitor->visitBuilder($facetBuilder, $fieldId) :
                    $visitor->visit($facetBuilder);
            }
        }

        
        
        return [];
    }
public function visitBuilder ( FacetBuilder $ facetBuilder , $ fieldId ) { foreach ( $ this -> visitors as $ visitor ) { if ( $ visitor -> canVisit ( $ facetBuilder ) ) { return $ visitor instanceof FacetFieldVisitor ? $ visitor -> visitBuilder ( $ facetBuilder , $ fieldId ) : $ visitor -> visit ( $ facetBuilder ) ; } } // Ignore unsupported FacetBuilders, don't block the query for it // ref: https://github.com/ezsystems/ezpublish-kernel/commit/435624d6fb8aa03ec219818ff7cb6755944b8d7b return [ ] ; }
{@inheritdoc}.
{