LogicalOr Criterion
The LogicalOr Search Criterion matches content if at least one of the provided Criteria matches.
When querying for products, use LogicalOr instead.
Arguments
criterion - a set of Criteria combined by the logical operator
Example
PHP
| use Ibexa\Contracts\Core\Repository\Values\Content\Query;
use Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion;
$query = new Query();
$query->filter = new Criterion\LogicalOr(
[
new Criterion\ContentTypeIdentifier('article'),
new Criterion\SectionIdentifier(['sports', 'news']),
]
);
|
REST API