Skip to content
For AI agents: the complete documentation index is available at llms.txt; this page is also available as Markdown at index.md.

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

1
2
3
4
5
6
7
8
9
use Ibexa\Contracts\Core\Repository\Values\Content\Query;
use Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion;

$contentTypeIdentifier = 'article';

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

REST API

1
2
3
4
5
6
7
<Query>
    <Criterion>
        <LogicalNotCriterion>
            <ContentTypeIdentifierCriterion>article</ContentTypeIdentifierCriterion>
        </LogicalNotCriterion>
    </Criterion>
</Query>
1
2
3
4
5
6
7
8
9
{
  "Query": {
    "Criterion": {
      "LogicalNotCriterion": {
        "ContentTypeIdentifierCriterion": "article"
      }
    }
  }
}