Skip to content

LogicalNot Criterion

The LogicalNot URL Criterion matches a URL if the provided Criterion doesn't match.

It takes only one Criterion in the array parameter.

Arguments

  • criterion - represents the Criterion that should be negated

Example

1
2
3
4
5
6
7
use Ibexa\Contracts\Core\Repository\Values\URL\Query\Criterion;
use Ibexa\Contracts\Core\Repository\Values\URL\URLQuery;

$query = new URLQuery();
$query->filter = new Criterion\LogicalNot(
    new Criterion\Pattern('ibexa.co')
);