protected function fillForm($buttonText, $formData = [])
    {
        if (! is_string($buttonText)) {
            $formData = $buttonText;
            $buttonText = null;
        }

        return $this->getForm($buttonText)->setValues($formData);
    }
protected function fillForm($buttonText, $formData = [])
    {
        if (! is_string($buttonText)) {
            $formData = $buttonText;
            $buttonText = null;
        }

        return $this->getForm($buttonText)->setValues($formData);
    }
protected function fillForm ( $ buttonText , $ formData = [ ] ) { if ( ! is_string ( $ buttonText ) ) { $ formData = $ buttonText ; $ buttonText = null ; } return $ this -> getForm ( $ buttonText ) -> setValues ( $ formData ) ; }
Fill out the form, using the given data.

@param  string $buttonText
@param  array  $formData
@return Form
Fill out the form using the given data .