Skip to content

LogicalNot Criterion

The LogicalNot Search Criterion matches content URL if the provided Criterion does not match.

It takes only one Criterion in the array parameter.

Arguments

  • criterion - represents the Criterion that should be negated.

Example

1
2
3
$query->filter = new Criterion\LogicalNot(
    new Criterion\ContentTypeIdentifier($contentTypeId)
);