Skip to content

Commit 09662ac

Browse files
committed
#544: Configurable Page Builder Full Screen Mode
- Fixing Static Test(s)
1 parent fca492b commit 09662ac

File tree

1 file changed

+4
-0
lines changed
  • app/code/Magento/PageBuilder/Component/Form/Element

1 file changed

+4
-0
lines changed

app/code/Magento/PageBuilder/Component/Form/Element/Wysiwyg.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class Wysiwyg extends \Magento\Ui\Component\Form\Element\Wysiwyg
3939
* @param array $config
4040
* @param PageBuilderConfig|null $pageBuilderConfig
4141
* @param bool $overrideSnapshot
42+
* @suppresswarnings(PHPMD.ExcessiveParameterList)
4243
*/
4344
public function __construct(
4445
ContextInterface $context,
@@ -54,17 +55,20 @@ public function __construct(
5455
bool $overrideSnapshot = false
5556
) {
5657
$wysiwygConfigData = isset($config['wysiwygConfigData']) ? $config['wysiwygConfigData'] : [];
58+
5759
// If a dataType is present we're dealing with an attribute
5860
if (isset($config['dataType'])) {
5961
try {
6062
$attribute = $attrRepository->get($data['name']);
63+
6164
if ($attribute) {
6265
$config['wysiwyg'] = (bool)$attribute->getIsWysiwygEnabled();
6366
}
6467
} catch (NoSuchEntityException $e) {
6568
// This model is used by non product attributes
6669
}
6770
}
71+
6872
$isEnablePageBuilder = isset($wysiwygConfigData['is_pagebuilder_enabled'])
6973
&& !$wysiwygConfigData['is_pagebuilder_enabled']
7074
|| false;

0 commit comments

Comments
 (0)