Back to MediaField class

Method getInput

protected string
getInput
()
Method to get the field input markup for a media selector.
Returns
  • string The field input markup.
Since
  • 1.6
Class: MediaField
Project: Joomla

Method getInput - Source code

/**
 * Method to get the field input markup for a media selector.
 * Use attributes to identify specific created_by and asset_id fields
 *
 * @return  string  The field input markup.
 *
 * @since   1.6
 */
protected function getInput()
{
    if (empty($this->layout)) {
        throw new \UnexpectedValueException(sprintf('%s has no layout assigned.', $this->name));
    }
    return $this->getRenderer($this->layout)->render($this->getLayoutData());
}