IsBookmarked Criterion
The IsBookmarked Search Criterion
searches for location based on whether it's added to a list of Favourites or not.
It works with current user reference.
This Criterion is available only for location Search.
Arguments
value - bool representing whether to search for a location that is added (default true) or not added (false) to the Favourites list
Example
PHP
| use Ibexa\Contracts\Core\Repository\Values\Content\LocationQuery;
use Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\Location\IsBookmarked;
$query = new LocationQuery();
$query->filter = new IsBookmarked();
/** @var \Ibexa\Contracts\Core\Repository\SearchService $searchService */
$results = $searchService->findLocations($query);
|
REST API