File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
app/code/Magento/Widget/Model/Widget Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -628,7 +628,6 @@ private function getWidgetTemplatesFromConfig(
628
628
* @return string
629
629
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
630
630
* @SuppressWarnings(PHPMD.NPathComplexity)
631
- * @throws LocalizedException
632
631
*/
633
632
public function generateLayoutUpdateXml ($ container , $ templatePath = '' )
634
633
{
@@ -644,12 +643,8 @@ public function generateLayoutUpdateXml($container, $templatePath = '')
644
643
if (!$ this ->getId () && !$ this ->isCompleteToCreate () || $ templatePath && !is_readable ($ templateFilename )) {
645
644
return '' ;
646
645
}
647
- try {
648
- $ this ->validateWidgetParameters ($ container );
649
- } catch (LocalizedException $ e ) {
650
- throw new LocalizedException (__ ('Layout update is invalid ' ));
651
- }
652
646
$ parameters = $ this ->getWidgetParameters ();
647
+ $ this ->validateWidgetParameters ($ container );
653
648
$ xml = '<body><referenceContainer name=" ' . $ container . '"> ' ;
654
649
$ template = '' ;
655
650
if (isset ($ parameters ['template ' ])) {
You can’t perform that action at this time.
0 commit comments