Skip to content

Commit 6110753

Browse files
author
Lukasz Borowiec
committed
#501: User sees content snapshot on CMS page in Admin Panel #7 - Fix for static test
1 parent 7d2b33b commit 6110753

File tree

1 file changed

+1
-12
lines changed
  • app/code/Magento/PageBuilder/Component/Form/Element

1 file changed

+1
-12
lines changed

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

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Magento\Framework\Exception\NoSuchEntityException;
1515
use Magento\PageBuilder\Model\State as PageBuilderState;
1616
use Magento\PageBuilder\Model\Stage\Config as Config;
17-
use Psr\Log\LoggerInterface;
1817

1918
/**
2019
* Updates wysiwyg element with Page Builder specific config
@@ -23,15 +22,9 @@
2322
*/
2423
class Wysiwyg extends \Magento\Ui\Component\Form\Element\Wysiwyg
2524
{
26-
/**
27-
* @var LoggerInterface
28-
*/
29-
private $logger;
30-
3125
/**
3226
* Wysiwyg constructor.
3327
*
34-
* @param LoggerInterface $logger
3528
* @param ContextInterface $context
3629
* @param FormFactory $formFactory
3730
* @param ConfigInterface $wysiwygConfig
@@ -43,7 +36,6 @@ class Wysiwyg extends \Magento\Ui\Component\Form\Element\Wysiwyg
4336
* @param array $config
4437
*/
4538
public function __construct(
46-
LoggerInterface $logger,
4739
ContextInterface $context,
4840
FormFactory $formFactory,
4941
ConfigInterface $wysiwygConfig,
@@ -63,9 +55,7 @@ public function __construct(
6355
$config['wysiwyg'] = (bool)$attribute->getIsWysiwygEnabled();
6456
}
6557
} catch (NoSuchEntityException $e) {
66-
$logger->warning(
67-
__('This model is used by non product attributes: %1', $e->getMessage())
68-
);
58+
// This model is used by non product attributes
6959
}
7060
}
7161
$isEnablePageBuilder = isset($wysiwygConfigData['is_pagebuilder_enabled'])
@@ -88,6 +78,5 @@ public function __construct(
8878
}
8979

9080
parent::__construct($context, $formFactory, $wysiwygConfig, $components, $data, $config);
91-
$this->logger = $logger;
9281
}
9382
}

0 commit comments

Comments
 (0)