Skip to content

SymbolAttributeCriterion

The SymbolAttribute Search Criterion searches for products by symbol attribute.

Arguments

  • identifier - identifier of the format
  • value - array with the values to search for

Example

PHP

1
2
3
4
5
6
7
8
9
<?php declare(strict_types=1);

use Ibexa\Contracts\ProductCatalog\Values\Product\ProductQuery;
use Ibexa\Contracts\ProductCatalogSymbolAttribute\Search\Criterion\SymbolAttribute;

$query = new ProductQuery();
$query->setFilter(new SymbolAttribute('ean', ['5023920187205']));
/** @var \Ibexa\Contracts\ProductCatalog\ProductServiceInterface $productService */
$results = $productService->findProducts($query);