Skip to content
For AI agents: the complete documentation index is available at llms.txt; this page is also available as Markdown at index.md.

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
10
<?php declare(strict_types=1);

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

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