- Documentation >
- Search >
- Product Search Criteria >
- SelectionAttribute
SelectionAttribute Criterion
The SelectionAttribute Search Criterion searches for products by the value of their selection attribute.
Arguments
identifier - string representing the attribute
value - array of strings representing the attribute values
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\SelectionAttribute(
'fabric_type',
['cotton']
)
);
|
REST API