Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

LocationSearchAdapter.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\Pagination\Pagerfanta;
8
13 class LocationSearchAdapter extends LocationSearchHitAdapter
14 {
23 public function getSlice($offset, $length)
24 {
25 $list = [];
26 foreach (parent::getSlice($offset, $length) as $hit) {
27 $list[] = $hit->valueObject;
28 }
29
30 return $list;
31 }
32 }
eZ\Publish\Core\Pagination\Pagerfanta\LocationSearchAdapter
Pagerfanta adapter for eZ Publish content search.
Definition: LocationSearchAdapter.php:14
eZ\Publish\Core\Pagination\Pagerfanta\LocationSearchAdapter\getSlice
getSlice($offset, $length)
Returns a slice of the results as Location objects.
Definition: LocationSearchAdapter.php:23
eZ\Publish\Core\Pagination\Pagerfanta\LocationSearchHitAdapter
Pagerfanta adapter for eZ Publish location search.
Definition: LocationSearchHitAdapter.php:18
eZ\Publish\Core\Pagination\Pagerfanta
Definition: ContentSearchAdapter.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.