1 | <?php |
||
15 | class WidgetFactory extends BaseWidgetFactory |
||
16 | { |
||
17 | use WidgetWrapperFactory; |
||
18 | |||
19 | /** |
||
20 | * Instanciate the widget, based on the provided configuration |
||
21 | * and return the instance of the widget |
||
22 | * |
||
23 | * @param array $params widget parameters |
||
24 | * @return AbstractWidget |
||
25 | */ |
||
26 | public function initWidget(array $params = []) |
||
31 | |||
32 | /** |
||
33 | * Convert the outputted html to an expression. |
||
34 | * The expression represents both the output (string) and the instance of |
||
35 | * the related widget |
||
36 | * |
||
37 | * @param string $html |
||
38 | * @return Expression |
||
39 | */ |
||
40 | protected function asExpression($html) |
||
44 | } |
||
45 |