public function isBookmarked(Request $request, int $locationId): Values\OK
    {
        $location = $this->locationService->loadLocation($locationId);

        if (!$this->bookmarkService->isBookmarked($location)) {
            throw new Exceptions\NotFoundException("Location {$locationId} is not bookmarked");
        }

        return new Values\OK();
    }
public function isBookmarked(Request $request, int $locationId): Values\OK
    {
        $location = $this->locationService->loadLocation($locationId);

        if (!$this->bookmarkService->isBookmarked($location)) {
            throw new Exceptions\NotFoundException("Location {$locationId} is not bookmarked");
        }

        return new Values\OK();
    }
public function isBookmarked ( Request $ request , int $ locationId ) : Values \ OK { $ location = $ this -> locationService -> loadLocation ( $ locationId ) ; if ( ! $ this -> bookmarkService -> isBookmarked ( $ location ) ) { throw new Exceptions \ NotFoundException ( "Location {$locationId} is not bookmarked" ) ; } return new Values \ OK ( ) ; }
Checks if given location is bookmarked.

@param \Symfony\Component\HttpFoundation\Request $request
@param int $locationId

@throws \eZ\Publish\API\Repository\Exceptions\NotFoundException
@throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException

@return \eZ\Publish\Core\REST\Server\Values\OK
Checks if given location is bookmarked .