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
 7
 8
 9
10
use Ibexa\Contracts\Core\Repository\Values\URL\Query\Criterion;
use Ibexa\Contracts\Core\Repository\Values\URL\URLQuery;

$query = new URLQuery();
$query->filter = new Criterion\LogicalOr(
    [
        new Criterion\SectionIdentifier(['sports', 'news']),
        new Criterion\Pattern('ibexa.co'),
    ]
);