Skip to content

LogicalOr Criterion

The LogicalOr URL Criterion matches a URL if at least one of the provided Criteria match.

Arguments

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

Example

1
2
3
4
5
6
$query->filter = new Criterion\LogicalOr(
    [
        new Criterion\SectionIdentifier(['sports', 'news']),
        new Criterion\Pattern('ibexa.co')
    ]
);