- Documentation >
- Search >
- Search Criteria reference >
- ImageOrientation
Image Orientation Criterion
The Orientation Search Criterion searches for image with specified orientation(s).
Supported orientation values: landscape, portrait and square.
Arguments
fielDefIdentifier - string representing the identifier of the field
orientation - strings representing orientations
Example
PHP
Single orientation value
| use Ibexa\Contracts\Core\Repository\Values\Content\Query;
use Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion;
use Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\Image\Orientation;
$query = new Query();
$query->query = new Orientation('image', 'landscape');
|
Multiple orientation values
| use Ibexa\Contracts\Core\Repository\Values\Content\Query;
use Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\Image\Orientation;
$query = new Query();
$orientations = [
'landscape',
'portrait',
];
$query->query = new Orientation('image', $orientations);
|
REST API