Core/Html/FormDesigner/FormGroup.php
public function &addElement($element, $args = [])
    {
        $element = $this->factory->create($element, $args);

        $this->elementFactory('factory', $element);

        return $element;
    }
public function &addElement($element, $args = [])
    {
        $element = $this->factory->create($element, $args);

        $this->elementFactory('factory', $element);

        return $element;
    }
public function & addElement ( $ element , $ args = [ ] ) { $ element = $ this -> factory -> create ( $ element , $ args ) ; $ this -> elementFactory ( 'factory' , $ element ) ; return $ element ; }
Create an new html object and adds it as new FormElement

@param string $element
Name/Path of element to create
@param array $args
Optional arguments to be passed on element creation call.

@return \Core\Html\AbstractHtml
Create an new html object and adds it as new FormElement