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

getAdapter() protected method

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