Back to ListField class

Method getInput

protected string
getInput
()
Method to get the field input markup for a generic list.
Returns
  • string The field input markup.
Since
  • 3.7.0
Class: ListField
Project: Joomla

Method getInput - Source code

/**
 * Method to get the field input markup for a generic list.
 * Use the multiple attribute to enable multiselect.
 *
 * @return  string  The field input markup.
 *
 * @since   3.7.0
 */
protected function getInput()
{
    $data = $this->getLayoutData();
    $data['options'] = (array) $this->getOptions();
    return $this->getRenderer($this->layout)->render($data);
}