Skip to content

Commit

Permalink
Enhancements for query parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
kedarkhaire committed Oct 5, 2023
1 parent d9b6ec1 commit f0a4a2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ interface PaginatedEntityListingControllerInterface extends PaginatedEntityContr
* Pager.
* @param string $key_provider
* Getter method on the entity that should provide a unique array key.
* @param array $queryparams
* Query parameters passed to the generator as $options['query']. This may
* be modified if there are extra parameters not used as route variables.
*
* @return \Apigee\Edge\Entity\EntityInterface[]
*/
public function getEntities(PagerInterface $pager = null, string $key_provider = 'id'): array;
public function getEntities(PagerInterface $pager = null, string $key_provider = 'id', $queryparams = []): array;
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ trait PaginatedEntityListingControllerTrait
*
* @return \Apigee\Edge\Entity\EntityInterface[]
*/
public function getEntities(PagerInterface $pager = null, string $key_provider = 'id'): array
public function getEntities(PagerInterface $pager = null, string $key_provider = 'id', $queryparams = []): array
{
return $this->listEntities($pager, [], $key_provider);
return $this->listEntities($pager, $queryparams, $key_provider);
}

/**
Expand Down

0 comments on commit f0a4a2b

Please sign in to comment.