Skip to content

Commit 2795556

Browse files
committed
MC-17814: Insert Widget Slide Out
1 parent d80ef8f commit 2795556

File tree

1 file changed

+9
-2
lines changed
  • app/code/Magento/Widget/Block/Adminhtml/Widget

1 file changed

+9
-2
lines changed

app/code/Magento/Widget/Block/Adminhtml/Widget/Form.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
*/
1212
namespace Magento\Widget\Block\Adminhtml\Widget;
1313

14+
/**
15+
* Widget Form Block class
16+
*/
1417
class Form extends \Magento\Backend\Block\Widget\Form\Generic
1518
{
1619
/**
@@ -47,8 +50,12 @@ protected function _prepareForm()
4750
$form = $this->_formFactory->create();
4851

4952
// Add messages container to fieldset
50-
$fieldset = $form->addFieldset('base_fieldset', ['legend' => '<div data-role="messages"></div>',
51-
'comment' => __('Inserting a widget does not create a widget instance.')]);
53+
$fieldset = $form->addFieldset(
54+
'base_fieldset',
55+
[
56+
'comment' => __('Inserting a widget does not create a widget instance.'),
57+
]
58+
);
5259

5360
$fieldset->addField(
5461
'select_widget_type',

0 commit comments

Comments
 (0)