From 0485c659aac24157b5983a9a77dd3249c1916114 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Ste=CC=A8pien=CC=81?= Date: Tue, 19 Sep 2023 23:08:00 +0200 Subject: [PATCH] Assign variables fix --- src/Hook/WidgetCapability.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Hook/WidgetCapability.php b/src/Hook/WidgetCapability.php index 8e07ec0..bfd04ca 100644 --- a/src/Hook/WidgetCapability.php +++ b/src/Hook/WidgetCapability.php @@ -49,7 +49,12 @@ public function getWidgetVariables($params): array ]; } - public function renderWidget($params) + protected function assignTemplateVariables(array $params) + { + $this->context->smarty->assign($this->getWidgetVariables($params)); + } + + public function renderWidget($params): string { return $this->execute($params); }