Bootstrapper\Form::submit PHP Method

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
    public function submit($value = null, $options = array())
    {
        $options['class'] = isset($options['class']) ? 'btn ' . Button::NORMAL . ' ' . $options['class'] : 'btn ' . Button::NORMAL;
        return parent::submit($value, $options);
    }

Usage Example

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);
 }
All Usage Examples Of Bootstrapper\Form::submit