src/FormField/Input.php
public function addAction($defaults = [])
    {
        if (!is_array($defaults)) {
            $defaults = [$defaults];
        }

        $this->action = $this->add(new Button($defaults), 'AfterInput');
        $this->addClass('action');

        return $this->action;
    }
public function addAction($defaults = [])
    {
        if (!is_array($defaults)) {
            $defaults = [$defaults];
        }

        $this->action = $this->add(new Button($defaults), 'AfterInput');
        $this->addClass('action');

        return $this->action;
    }
public function addAction ( $ defaults = [ ] ) { if ( ! is_array ( $ defaults ) ) { $ defaults = [ $ defaults ] ; } $ this -> action = $ this -> add ( new Button ( $ defaults ) , 'AfterInput' ) ; $ this -> addClass ( 'action' ) ; return $ this -> action ; }
Adds new action button.

@param array $defaults

@return Button
Adds new action button .