src/Form/Form/Element.php
public function addSubmit($name, $attr = [])
    {
        $e = new \FrenchFrogs\Form\Element\Submit($name, $attr);
        $e->setValue($name);
        $e->setOptionAsPrimary();
        $this->addAction($e);
        return $e;
    }
public function addSubmit($name, $attr = [])
    {
        $e = new \FrenchFrogs\Form\Element\Submit($name, $attr);
        $e->setValue($name);
        $e->setOptionAsPrimary();
        $this->addAction($e);
        return $e;
    }
public function addSubmit ( $ name , $ attr = [ ] ) { $ e = new \ FrenchFrogs \ Form \ Element \ Submit ( $ name , $ attr ) ; $ e -> setValue ( $ name ) ; $ e -> setOptionAsPrimary ( ) ; $ this -> addAction ( $ e ) ; return $ e ; }
Add action button

@param $name
@param array $attr
@return \FrenchFrogs\Form\Element\Submit
Add action button