submit() public method

public submit ( string | null $value = null, array $options = [] ) : string
$value string | null The value of the submit button
$options array The options
return string
Example #1
0
 /**
  * Create a submit button element.
  *
  * @param string|null $value The value of the submit button
  * @param array $options The options
  * @return string 
  * @param string $value
  * @param array $options
  * @return string 
  * @static 
  */
 public static function submit($value = null, $options = array())
 {
     return \Bootstrapper\Form::submit($value, $options);
 }
 public function testSubmitButton()
 {
     $html = Form::submit('foo', $this->testAttributes);
     $matcher = $this->createButtonMatcher('submit');
     $this->assertTag($matcher, $html);
 }