- Documentation >
- Search >
- Search Criteria reference >
- SectionIdentifier
SectionIdentifier Criterion
The SectionIdentifier Search Criterion searches for content based on the identifier of the Section it's assigned to.
Arguments
value - string(s) representing the identifiers of the Section(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\SectionIdentifier(['sports', 'news']);
|
REST API