Skip to content

ProductTypeTerm

The ProductTypeTermAggregation aggregates search results by the product type.

Arguments

  • name - name of the Aggregation object

Example

1
2
3
4
5
6
7
use Ibexa\Contracts\ProductCatalog\Values\Product\ProductQuery;
use Ibexa\Contracts\ProductCatalog\Values\Product\Query\Aggregation\ProductTypeTermAggregation;

$query = new ProductQuery();
$query->setAggregations([
    new ProductTypeTermAggregation('product_type'),
]);