mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
pass options in twig extension filter
This commit is contained in:
@@ -20,10 +20,11 @@ class WopiEditTwigExtensionRuntime implements RuntimeExtensionInterface
|
||||
|
||||
public const TEMPLATE = '@ChillDocStore/Button/wopi_edit_document.html.twig';
|
||||
|
||||
public function renderEditButton(Environment $environment, StoredObject $document): string
|
||||
public function renderEditButton(Environment $environment, StoredObject $document, ?Array $options = null): string
|
||||
{
|
||||
return $environment->render(self::TEMPLATE, [
|
||||
'document' => $document
|
||||
'document' => $document,
|
||||
'options' => $options
|
||||
]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user