Skip to content

LogicalAnd Criterion

The LogicalAnd Search Criterion matches content if all provided Criteria match.

Arguments

  • criterion - a set of Criteria combined by the logical operator.

Example

1
2
3
4
5
$query->query = new Criterion\LogicalAnd([
        new Criterion\ContentTypeIdentifier('article'),
        new Criterion\SectionIdentifier(['sports', 'news']);
    ]
);