135 $widget->setGId(VisualConstructor\
Helper\Util::generateUserUniqueId());
136 $widget->setWidgetClass(BaseWidget::getClassName());
137 $widget->setViewKey($view::VIEW_KEY);
138 $widget->setCategoryKey(
'catalog');
140 $widget->getWidgetHandler(
true)
141 ->updateFormElementValue(
'label', $view->getLabel());
142 $widget->addConfigurations($widget->getWidgetHandler(
true)->getConfigurations());
145 $report->setGId(VisualConstructor\
Helper\Util::generateUserUniqueId());
148 $report->setWidget($widget);
149 $report->addConfigurations($report->getReportHandler(
true)->getConfigurations());
150 $widget->addReports($report);