Skip to content

LogicalOr Criterion

The LogicalOr Search Criterion matches content if at least one of the provided Criteria matches.

Arguments

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

Example

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