pass options in twig extension filter

This commit is contained in:
Mathieu Jaumotte
2022-02-02 18:28:59 +01:00
parent 232e71f46c
commit 06b3d63133
3 changed files with 14 additions and 12 deletions

View File

@@ -1,11 +1,6 @@
{% set button = {
'changeIcon': 'fa-magic',
'changeClass': 'btn-primary'
} %}{#
'noText': false
#}
<span data-module="wopi-link"
data-wopi-url="{{ path('chill_wopi_file_edit', {'fileId': document.uuid}) }}"
data-doc-type="{{ document.type|e('html_attr') }}"
data-button="{{ button|json_encode }}"
data-button="{{ options|json_encode }}"
></span>