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
| 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