File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed 
code_samples/search/location 
docs/search/criteria_reference Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 1+ <?php  declare (strict_types=1 );
2+ 
3+ use  Ibexa \Contracts \Core \Repository \Values \Content \LocationQuery ;
4+ use  Ibexa \Contracts \Core \Repository \Values \Content \Query \Criterion \Location \IsBookmarked ;
5+ 
6+ $ query  = new  LocationQuery ();
7+ $ query ->filter  = new  IsBookmarked ();
8+ /** @var \Ibexa\Contracts\Core\Repository\SearchService $searchService */ 
9+ $ results  = $ searchService ->findLocations ($ query );
Original file line number Diff line number Diff line change @@ -19,15 +19,5 @@ It works with current user reference.
1919### PHP  
2020
2121```  php 
22- <?php declare(strict_types=1);
23- 
24- use Ibexa\Contracts\Core\Repository\Values\Content\LocationQuery;
25- use Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\Location\IsBookmarked;
26- 
27- $query = new LocationQuery();
28- $query->filter = new IsBookmarked();
29- 
30- /** @var \Ibexa\Contracts\Core\Repository\SearchService $searchService */
31- 
32- $results = $searchService->findLocations($query);
22+ [[= include_file('code_samples/search/location/isbookmarked_criterion.php') =]]
3323``` 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments