/** * @param WidgetDataEvent $widgetDataEvent * * @DI\Observe("icap_portfolio_widget_data_userInformation") * @DI\Observe("icap_portfolio_widget_data_text") * @DI\Observe("icap_portfolio_widget_data_skills") * @DI\Observe("icap_portfolio_widget_data_formations") * @DI\Observe("icap_portfolio_widget_data_experience") */ public function onWidgetData(WidgetDataEvent $widgetDataEvent) { $widgetDataEvent->setWidget($this->widgetFactory->createEmptyDataWidget($widgetDataEvent->getWidgetType())); }
/** * @param Portfolio $portfolio * @param string $widgetType * * @return PortfolioWidget */ public function getNewPortfolioWidget(Portfolio $portfolio, $widgetType) { return $this->widgetFactory->createPortfolioWidget($portfolio, $widgetType); }