FOFFormFieldList::getOptionName
Gets the active option's label given an array of JHtml options
Signature
public function getOptionName(array
$data,
[mixed
$selected = null,
[string
$optKey = 'value',
[string
$optText = 'text']]] )
Parameters
-
$data
- The JHtml options to parse
-
$selected
- The currently selected value
-
$optKey
- Key name
-
$optText
- Value name
Returns
- mixed
- The label of the currently selected option