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