public function YamlFormSubmissionForm::complete in YAML Form 8
Form submission handler for the 'complete' action.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
File
- src/
YamlFormSubmissionForm.php, line 711
Class
- YamlFormSubmissionForm
- Provides a form to collect and edit submissions.
Namespace
Drupal\yamlformCode
public function complete(array &$form, FormStateInterface $form_state) {
$form_state
->setValue('in_draft', FALSE);
}