1 | <?php |
||
21 | abstract class TemplatingWidgetHandler extends AbstractWidgetHandler |
||
22 | { |
||
23 | /** |
||
24 | * @var EngineInterface |
||
25 | */ |
||
26 | protected $templating; |
||
27 | |||
28 | /** |
||
29 | * @return EngineInterface |
||
30 | */ |
||
31 | 1 | public function getTemplating() |
|
35 | |||
36 | 1 | public function __construct(WidgetModelInterface $widgetModel, EngineInterface $templating) |
|
42 | |||
43 | /** |
||
44 | * Render given template with given parameters. |
||
45 | * |
||
46 | * @param string $templateName |
||
47 | * @param array $parameters |
||
48 | * |
||
49 | * @return string |
||
50 | */ |
||
51 | 1 | protected function renderTemplate($templateName, $parameters = null) |
|
59 | } |
||
60 |