- mobotakAsked on November 02, 2017 at 06:14 AM
Provides a form submit button.
Submit buttons are processed the same as regular buttons, except they trigger the form's submit handler.
#submit: Specifies an alternate callback for form submission when the submit button is pressed. Use '::methodName' format or an array containing the object and method name (for example, [ $this, 'methodName'] ).
#value: The text to be shown on the button.
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => $this->t('Save'),
This is a re-post of a comment on How to send Submissions to Your MySQL Database Using PHP