- Documentation >
- Search >
- Product Search Criteria >
- IntegerAttribute
IntegerAttribute Criterion
The IntegerAttribute Search Criterion searches for products by the value of their integer attribute.
Arguments
identifier - string representing the attribute
value - string representing the attribute value
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\IntegerAttribute(
'size',
38
)
);
|
REST API