Back to SpacerField class

Method renderField

public string
renderField
(mixed $options = array())
Method to get a control group with label and input.
Parameters
  • array $options Options to be passed into the rendering of the field
Returns
  • string A string containing the html for the control group
Since
  • 3.7.3
Class: SpacerField
Project: Joomla

Method renderField - Source code

/**
 * Method to get a control group with label and input.
 *
 * @param   array  $options  Options to be passed into the rendering of the field
 *
 * @return  string  A string containing the html for the control group
 *
 * @since   3.7.3
 */
public function renderField($options = array())
{
    $options['class'] = empty($options['class']) ? 'field-spacer' : $options['class'] . ' field-spacer';
    return parent::renderField($options);
}