Back to ComboField class

Method getLayoutData

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

Method getLayoutData - Source code

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