![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-catalog/Ui/Component/Category/Form/Element/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Catalog\Ui\Component\Category\Form\Element; use Magento\Backend\Block\Widget\Button; use Magento\Backend\Helper\Data as DataHelper; use Magento\Catalog\Api\CategoryAttributeRepositoryInterface; use Magento\Catalog\Model\Category; use Magento\Framework\Data\FormFactory; use Magento\Framework\View\Element\UiComponent\ContextInterface; use Magento\Ui\Component\Wysiwyg\ConfigInterface; use Magento\Framework\View\LayoutInterface; /** * Catalog Wysiwyg * * @api * @since 101.0.0 */ class Wysiwyg extends \Magento\Ui\Component\Form\Element\Wysiwyg { /** * @var DataHelper * @since 101.0.0 */ protected $backendHelper; /** * @var LayoutInterface * @since 101.0.0 */ protected $layout; /** * @param ContextInterface $context * @param FormFactory $formFactory * @param ConfigInterface $wysiwygConfig * @param LayoutInterface $layout * @param DataHelper $backendHelper * @param CategoryAttributeRepositoryInterface $attrRepository * @param array $components * @param array $data * @param array $config * * @SuppressWarnings(PHPMD.ExcessiveParameterList) */ public function __construct( ContextInterface $context, FormFactory $formFactory, ConfigInterface $wysiwygConfig, LayoutInterface $layout, DataHelper $backendHelper, CategoryAttributeRepositoryInterface $attrRepository, array $components = [], array $data = [], array $config = [] ) { $this->layout = $layout; $this->backendHelper = $backendHelper; $config['wysiwyg'] = (bool)$attrRepository->get($data['name'])->getIsWysiwygEnabled(); parent::__construct($context, $formFactory, $wysiwygConfig, $components, $data, $config); } }