| @@ 61-69 (lines=9) @@ | ||
| 58 | * |
|
| 59 | * @return string |
|
| 60 | */ |
|
| 61 | public function getWidgetBusinessEntityContent(Widget $widget) |
|
| 62 | { |
|
| 63 | $entity = $widget->getEntity(); |
|
| 64 | $parameters = $this->getWidgetStaticContent($widget); |
|
| 65 | ||
| 66 | $this->populateParametersWithWidgetFields($widget, $entity, $parameters); |
|
| 67 | ||
| 68 | return $parameters; |
|
| 69 | } |
|
| 70 | ||
| 71 | /** |
|
| 72 | * Get the content of the widget by the entity linked to it. |
|
| @@ 78-87 (lines=10) @@ | ||
| 75 | * |
|
| 76 | * @return string |
|
| 77 | */ |
|
| 78 | public function getWidgetEntityContent(Widget $widget) |
|
| 79 | { |
|
| 80 | $entity = $widget->getEntity(); |
|
| 81 | ||
| 82 | $parameters = $this->getWidgetStaticContent($widget); |
|
| 83 | ||
| 84 | $this->populateParametersWithWidgetFields($widget, $entity, $parameters); |
|
| 85 | ||
| 86 | return $parameters; |
|
| 87 | } |
|
| 88 | ||
| 89 | /** |
|
| 90 | * Get the content of the widget for the query mode. |
|