Skip to content

ContentTypeIdentifier Criterion

The ContentTypeIdentifier Search Criterion searches for content based on the identifier of its content type.

Arguments

  • value - string(s) representing the content type identifier(s)

Example

PHP

1
$query->query = new Criterion\ContentTypeIdentifier(['article', 'blog_post']);

REST API

1
2
3
4
5
<Query>
    <Filter>
        <ContentTypeIdentifierCriterion>article</ContentTypeIdentifierCriterion>
    </Filter>
</Query>
1
2
3
4
5
"Query": {
    "Filter": {
        "ContentTypeIdentifierCriterion": "article"
    }
}