Back to ColorField class

Method getInput

protected string
getInput
()
Method to get the field input markup.
Returns
  • string The field input markup.
Since
  • 1.7.3
Class: ColorField
Project: Joomla

Method getInput - Source code

/**
 * Method to get the field input markup.
 *
 * @return  string  The field input markup.
 *
 * @since   1.7.3
 */
protected function getInput()
{
    // Switch the layouts
    if ($this->control === 'simple' || $this->control === 'slider') {
        $this->layout .= '.' . $this->control;
    } else {
        $this->layout .= '.advanced';
    }
    // Trim the trailing line in the layout file
    return rtrim($this->getRenderer($this->layout)->render($this->getLayoutData()), PHP_EOL);
}