public function PaginatorInterface::applyToQuery in JSON:API Resources 8
Modifies an entity query.
Parameters
\Drupal\Core\Entity\Query\QueryInterface $query: The query to be modified.
\Drupal\Core\Cache\CacheableMetadata $cacheable_metadata: A CacheableMetadata object that will be used to capture any cacheability information generated by the modifier. The same object that is passed to this method should be added to the cacheability of the final response by the caller.
1 method overrides PaginatorInterface::applyToQuery()
- OffsetLimitPaginator::applyToQuery in src/
Unstable/ Entity/ Query/ Pagination/ OffsetLimitPaginator.php - Modifies an entity query.
File
- src/
Entity/ Query/ PaginatorInterface.php, line 25
Class
- PaginatorInterface
- Interface EntityQueryModifierInterface.
Namespace
Drupal\jsonapi_resources\Entity\QueryCode
public function applyToQuery(QueryInterface $query, CacheableMetadata $cacheable_metadata) : void;