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); }