- Documentation >
- Search >
- Product Search Criteria >
- ProductCategory
ProductCategory Criterion
The ProductCategory Search Criterion searches for products by the category they're assigned to.
Arguments
taxonomyEntries - array of ints representing category IDs
Example
PHP
| use Ibexa\Contracts\ProductCatalog\Values\Product\ProductQuery;
use Ibexa\Contracts\ProductCatalog\Values\Product\Query\Criterion;
$query = new ProductQuery(
null,
new \Ibexa\Contracts\ProductCatalog\Values\Product\Query\Criterion\ProductCategory([2, 3])
);
|
REST API