Back to HtmlView class

Method getForm

public mixed
getForm
()
Returns the form object
Returns
  • mixed A \JForm object on success, false on failure
Since
  • 3.2
Class: HtmlView
Project: Joomla

Method getForm - Source code

/**
 * Returns the form object
 *
 * @return  mixed  A \JForm object on success, false on failure
 *
 * @since   3.2
 */
public function getForm()
{
    if (!\is_object($this->form)) {
        $this->form = $this->get('Form');
    }
    return $this->form;
}