- Documentation >
- Search >
- Search Criteria reference >
- ContentTypeIdentifier
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
| use Ibexa\Contracts\Core\Repository\Values\Content\Query;
use Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion;
$query = new Query();
$query->query = new Criterion\ContentTypeIdentifier(['article', 'blog_post']);
|
REST API