Back to RadioField class

Method getLayoutData

protected array
getLayoutData
()
Method to get the data to be passed to the layout for rendering.
Returns
  • array
Since
  • 3.5
Class: RadioField
Project: Joomla

Method getLayoutData - Source code

/**
 * Method to get the data to be passed to the layout for rendering.
 *
 * @return  array
 *
 * @since   3.5
 */
protected function getLayoutData()
{
    $data = parent::getLayoutData();
    $extraData = array('options' => $this->getOptions(), 'value' => (string) $this->value);
    return array_merge($data, $extraData);
}