Skip to content

Commit 630887e

Browse files
committed
#544: Configurable Page Builder Full Screen Mode
- Refactoring
1 parent 92655b0 commit 630887e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +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)
42+
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
4343
*/
4444
public function __construct(
4545
ContextInterface $context,

app/code/Magento/PageBuilder/Model/Config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function getContentTypes(): array
6868
public function isEnabled(): bool
6969
{
7070
return (bool)$this->scopeConfig->getValue(
71-
\Magento\PageBuilder\Model\Config::IS_PAGEBUILDER_ENABLED
71+
self::IS_PAGEBUILDER_ENABLED
7272
);
7373
}
7474

@@ -80,7 +80,7 @@ public function isEnabled(): bool
8080
public function isContentPreviewEnabled(): bool
8181
{
8282
return (bool) $this->scopeConfig->getValue(
83-
\Magento\PageBuilder\Model\Config::IS_PAGEBUILDER_CONTENT_PREVIEW_ENABLED
83+
self::IS_PAGEBUILDER_CONTENT_PREVIEW_ENABLED
8484
);
8585
}
8686
}

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminCatalogCategoryDisablePageBuilderTest/PageBuilderCategoryDisablePageBuilderStageTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<actionGroup ref="ExpandAdminProductSectionActionGroup" stepKey="expandAdminProductSection"/>
2727
</before>
2828
<after>
29-
<magentoCLI command="config:set cms/pagebuilder/enable_content_preview 1" stepKey="enablePageBuilderContentPreview"/>
29+
<actionGroup ref="adminSetPageBuilderContentPreviewActionGroup" stepKey="resetPageBuilderContentPreview"/>
3030
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
3131
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
3232
</after>

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminCatalogProductDisablePageBuilderTest/PageBuilderProductDisablePageBuilderStageTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<actionGroup ref="ExpandAdminProductSectionActionGroup" stepKey="expandAdminProductSection"/>
3030
</before>
3131
<after>
32-
<magentoCLI command="config:set cms/pagebuilder/enable_content_preview 1" stepKey="enablePageBuilderContentPreview"/>
32+
<actionGroup ref="adminSetPageBuilderContentPreviewActionGroup" stepKey="resetPageBuilderContentPreview"/>
3333
<deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
3434
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
3535
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>

0 commit comments

Comments
 (0)