Skip to content

Commit 7251cdd

Browse files
authored
feat(web/twig): add 'ems_search_config_execute' twig function (#1289)
1 parent 6469497 commit 7251cdd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

dev/client-helper-bundle/twig.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,18 @@ Sorting example
6666
{% endif %}
6767
````
6868

69+
## ems_search_config_execute
70+
71+
Execute a search configuration and retrieve the results, allowing the
72+
configuration to be defined directly within Twig templates instead of in the
73+
route or environment variables
74+
75+
````twig
76+
{% set searchConfig = emsch_search_config() %}
77+
78+
{% set results = emsch_search_config_execute(searchConfig %}
79+
````
80+
6981
# Twig embed
7082

7183
## render hierarchy

0 commit comments

Comments
 (0)