protected function OffsetLimitPaginator::__construct in JSON:API Resources 8
OffsetPagerQueryModifier constructor.
This is protected by design. Use static::create() instead.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The request object which may have a `page` query parameter.
\Drupal\jsonapi_resources\Unstable\Entity\Query\CacheabilityCapturingExecutor $entity_query_executor: The cacheability capturing entity query executor.
File
- src/
Unstable/ Entity/ Query/ Pagination/ OffsetLimitPaginator.php, line 50
Class
- OffsetLimitPaginator
- A paginator for handling offset-limit pagination in JSON:API request.
Namespace
Drupal\jsonapi_resources\Unstable\Entity\Query\PaginationCode
protected function __construct(Request $request, CacheabilityCapturingExecutor $entity_query_executor) {
$this->request = $request;
$this->entityQueryExecutor = $entity_query_executor;
}