Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1 KB

File metadata and controls

49 lines (37 loc) · 1 KB
description LogicalNot Search Criterion

LogicalNot Criterion

The LogicalNot Search Criterion matches content 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

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

REST API

=== "XML"

```xml
<Query>
    <Criterion>
        <LogicalNotCriterion>
            <ContentTypeIdentifierCriterion>article</ContentTypeIdentifierCriterion>
        </LogicalNotCriterion>
    </Criterion>
</Query>
```

=== "JSON"

```json
{
  "Query": {
    "Criterion": {
      "LogicalNotCriterion": {
        "ContentTypeIdentifierCriterion": "article"
      }
    }
  }
}
```