| Current Path : /home/juvelize/saulnois/tmp/install_695d2cf0b4957/src/Field/ |
| Current File : /home/juvelize/saulnois/tmp/install_695d2cf0b4957/src/Field/TextareaproField.php |
<?php
/*
* @package Tech Fry Library
* @license https://www.gnu.org/licenses/gpl-3.0.en.html
*/
namespace TechFry\Library\Field;
defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Form\Field\TextareaField;
class TextareaproField extends TextareaField
{
protected $type = 'Textareapro';
protected function getLabel()
{
$label = parent::getLabel();
$label .= '<span title="' . Text::_('TF_PRO_FIELD') . '"> 🔒</span>';
return $label;
}
protected function getInput()
{
$this->__set('disabled', true);
$input = parent::getInput();
return $input;
}
}