Skip to content

Commit

Permalink
Merge pull request #904 from czechmarcin/ezee30310-udw_search_limit
Browse files Browse the repository at this point in the history
EZEE-30310: SearchLimit UDW: UDW search limit configuration in YAML
  • Loading branch information
Łukasz Serwatka committed Mar 18, 2019
2 parents b784866 + b922951 commit ca3678a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/bundle/Resources/config/universal_discovery_widget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ system:
preselected_location: null
search:
results_per_page: 10
limit: 50
create:
active_tab: 'create'
visible_tabs: ['create']
Expand Down
1 change: 1 addition & 0 deletions src/bundle/Templating/Twig/UniversalDiscoveryExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public function renderUniversalDiscoveryWidgetConfig(string $configName, array $
'selectedItemsLimit' => $config['selected_items_limit'],
'startingLocationId' => $config['starting_location_id'],
'searchResultsPerPage' => $config['search']['results_per_page'],
'searchResultsLimit' => $config['search']['limit'],
'allowContainersOnly' => $config['containers_only'],
'cotfPreselectedLanguage' => $config['content_on_the_fly']['preselected_language'],
'cotfAllowedLanguages' => $config['content_on_the_fly']['allowed_languages'],
Expand Down

0 comments on commit ca3678a

Please sign in to comment.