| Current Path : /home/rtorresani/www/app/code/Amasty/Base/Block/Adminhtml/System/Config/ |
| Current File : //home/rtorresani/www/app/code/Amasty/Base/Block/Adminhtml/System/Config/Advertise.php |
<?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 '';
}
}