eZ\Publish\Core\Pagination\Tests\LocationSearchAdapterTest::getAdapter PHP Method

getAdapter() protected method

protected getAdapter ( eZ\Publish\API\Repository\Values\Content\LocationQuery $query, eZ\Publish\API\Repository\SearchService $searchService ) : LocationSearchAdapter
$query eZ\Publish\API\Repository\Values\Content\LocationQuery
$searchService eZ\Publish\API\Repository\SearchService
return eZ\Publish\Core\Pagination\Pagerfanta\LocationSearchAdapter
    protected function getAdapter(LocationQuery $query, SearchService $searchService)
    {
        return new LocationSearchAdapter($query, $searchService);
    }