if (!
$request->request->
get('shipping-free-filter', true
)) { return null;
} $filtered =
(bool) $request->
get('shipping-free', false
);
return new Filter( 'shipping-free',
$filtered === true,
[ new FilterAggregation( 'shipping-free-filter',
new MaxAggregation('shipping-free', 'product.shippingFree'
),
[new EqualsFilter('product.shippingFree', true
)] ),
],
new EqualsFilter('product.shippingFree', true
),
$filtered );
}}