![]() 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/cartforge.co/app/code/Amasty/Base/Block/Adminhtml/System/Config/ |
<?php /** * @author Amasty Team * @copyright Copyright (c) Amasty (https://www.amasty.com) * @package Magento 2 Base Package */ namespace Amasty\Base\Block\Adminhtml\System\Config; use Magento\Backend\Block\Template\Context; use Magento\Config\Block\System\Config\Form\Field; use Magento\Framework\Data\Form\Element\AbstractElement; /** * Class Advertise for adding advertise */ class Advertise extends Field { /** * @param AbstractElement $element * * @return string */ public function render(AbstractElement $element) { $advertiseData = $element->getContainer()->getGroup()['data']; $element->setValue(__('Not Installed')); $element->setHtmlId('amasty_not_instaled'); $element->setComment($advertiseData['text']); $element->setLabel(strip_tags($advertiseData['tab_name'])); return parent::render($element); } /** * @inheritDoc */ protected function _renderScopeLabel(\Magento\Framework\Data\Form\Element\AbstractElement $element) { return ''; } /** * @inheritDoc */ protected function _isInheritCheckboxRequired(\Magento\Framework\Data\Form\Element\AbstractElement $element) { return false; } /** * @inheritDoc */ protected function _renderInheritCheckbox(\Magento\Framework\Data\Form\Element\AbstractElement $element) { return ''; } }