protected function createLocationSearchHitPager(LocationQuery $locationQuery, $currentPage, $maxPerPage)
    {
        @trigger_error(
            'PagerfantaFindTrait is deprecated since version 2.5 and will be removed in 3.0. Use PagerfantaTrait instead.',
            E_USER_DEPRECATED
        );

        $adapter = new LocationSearchHitAdapter($locationQuery, $this->getSite()->getFindService());

        return $this->getPager($adapter, $currentPage, $maxPerPage);
    }
protected function createLocationSearchHitPager(LocationQuery $locationQuery, $currentPage, $maxPerPage)
    {
        @trigger_error(
            'PagerfantaFindTrait is deprecated since version 2.5 and will be removed in 3.0. Use PagerfantaTrait instead.',
            E_USER_DEPRECATED
        );

        $adapter = new LocationSearchHitAdapter($locationQuery, $this->getSite()->getFindService());

        return $this->getPager($adapter, $currentPage, $maxPerPage);
    }
protected function createLocationSearchHitPager ( LocationQuery $ locationQuery , $ currentPage , $ maxPerPage ) { @ trigger_error ( 'PagerfantaFindTrait is deprecated since version 2.5 and will be removed in 3.0. Use PagerfantaTrait instead.' , E_USER_DEPRECATED ) ; $ adapter = new LocationSearchHitAdapter ( $ locationQuery , $ this -> getSite ( ) -> getFindService ( ) ) ; return $ this -> getPager ( $ adapter , $ currentPage , $ maxPerPage ) ; }
Returns Pagerfanta pager that starts from first page
configured with
LocationSearchHitAdapter and FindService

@param \eZ\Publish\API\Repository\Values\Content\LocationQuery $locationQuery
@param int $currentPage
@param int $maxPerPage

@return \Pagerfanta\Pagerfanta
Returns Pagerfanta pager that starts from first page configured with LocationSearchHitAdapter and FindService