Skip to content

IsBookmarked Criterion

The IsBookmarked Search Criterion searches for location based on whether it's bookmarked or not. It works with current user reference.

This Criterion is available only for location Search.

Arguments

  • value - bool representing whether to search for bookmarked location (default true) or not bookmarked location (false)

Example

PHP

1
2
3
4
5
6
7
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

1
2
3
4
5
<Query>
    <Filter>
        <IsBookmarkedCriterion>true</IsBookmarkedCriterion>
    </Filter>
</Query>
1
2
3
4
5
"Query": {
    "Filter": {
        "IsBookmarkedCriterion": true
    }
}