acf
This commit is contained in:
34
plugins/system/nrframework/fields/rulevaluehint.php
Normal file
34
plugins/system/nrframework/fields/rulevaluehint.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @author Tassos Marinos <info@tassos.gr>
|
||||
* @link https://www.tassos.gr
|
||||
* @copyright Copyright © 2024 Tassos All Rights Reserved
|
||||
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Form\FormField;
|
||||
|
||||
class JFormFieldRuleValueHint extends FormField
|
||||
{
|
||||
protected function getLabel()
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to render the input field
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected function getInput()
|
||||
{
|
||||
$ruleName = (string) $this->element['ruleName'];
|
||||
$rule = \NRFramework\Factory::getCondition($ruleName);
|
||||
|
||||
return '<div class="ruleValueHint">' . $rule->getValueHint() . '</div>';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user