LogicalAnd Criterion
The LogicalAnd Search Criterion matches content if all provided Criteria match.
When querying for products, use LogicalAnd 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->query = new Criterion\LogicalAnd(
[
new Criterion\ContentTypeIdentifier('article'),
new Criterion\SectionIdentifier(['sports', 'news']),
]
);
|
REST API