src/Form/Form/Element.php
public function addElement(\FrenchFrogs\Form\Element\Element $element, FrenchFrogs\Renderer\Renderer $renderer = null)
    {
        // Join element to the form
        $element->setForm($this);

        $this->elements[$element->getName()] = $element;

        return $this;
    }
public function addElement(\FrenchFrogs\Form\Element\Element $element, FrenchFrogs\Renderer\Renderer $renderer = null)
    {
        // Join element to the form
        $element->setForm($this);

        $this->elements[$element->getName()] = $element;

        return $this;
    }
public function addElement ( \ FrenchFrogs \ Form \ Element \ Element $ element , FrenchFrogs \ Renderer \ Renderer $ renderer = null ) { // Join element to the form $ element -> setForm ( $ this ) ; $ this -> elements [ $ element -> getName ( ) ] = $ element ; return $ this ; }
Add a single element to the elements container

@param \FrenchFrogs\Form\Element\Element $element
@return $this
Add a single element to the elements container