mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
passing query parameters to options to search interfaces
This commit is contained in:
parent
cd855c2241
commit
18463fb18a
@ -92,7 +92,11 @@ class SearchController extends Controller
|
||||
$name,
|
||||
$paginatorFactory->getCurrentPageFirstItemNumber(),
|
||||
$paginatorFactory->getCurrentItemsPerPage(),
|
||||
array(SearchInterface::SEARCH_PREVIEW_OPTION => false),
|
||||
array(
|
||||
SearchInterface::SEARCH_PREVIEW_OPTION => false,
|
||||
SearchInterface::REQUEST_QUERY_PARAMETERS => $request
|
||||
->get(SearchInterface::REQUEST_QUERY_KEY_ADD_PARAMETERS, [])
|
||||
),
|
||||
$_format
|
||||
)];
|
||||
|
||||
|
@ -33,6 +33,16 @@ interface SearchInterface
|
||||
{
|
||||
|
||||
const SEARCH_PREVIEW_OPTION = '_search_preview';
|
||||
|
||||
/**
|
||||
* Request parameters contained inside the `add_q` parameters
|
||||
*/
|
||||
const REQUEST_QUERY_PARAMETERS = '_search_parameters';
|
||||
|
||||
/**
|
||||
* Supplementary parameters to the query string
|
||||
*/
|
||||
const REQUEST_QUERY_KEY_ADD_PARAMETERS = 'add_q';
|
||||
|
||||
/**
|
||||
* return the result in a html string. The string will be inclued (as raw)
|
||||
|
Loading…
x
Reference in New Issue
Block a user