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(
628628 * @return string
629629 * @SuppressWarnings(PHPMD.CyclomaticComplexity)
630630 * @SuppressWarnings(PHPMD.NPathComplexity)
631- * @throws LocalizedException
632631 */
633632 public function generateLayoutUpdateXml ($ container , $ templatePath = '' )
634633 {
@@ -644,12 +643,8 @@ public function generateLayoutUpdateXml($container, $templatePath = '')
644643 if (!$ this ->getId () && !$ this ->isCompleteToCreate () || $ templatePath && !is_readable ($ templateFilename )) {
645644 return '' ;
646645 }
647- try {
648- $ this ->validateWidgetParameters ($ container );
649- } catch (LocalizedException $ e ) {
650- throw new LocalizedException (__ ('Layout update is invalid ' ));
651- }
652646 $ parameters = $ this ->getWidgetParameters ();
647+ $ this ->validateWidgetParameters ($ container );
653648 $ xml = '<body><referenceContainer name=" ' . $ container . '"> ' ;
654649 $ template = '' ;
655650 if (isset ($ parameters ['template ' ])) {
You can’t perform that action at this time.
0 commit comments