3 namespace Drupal\form_test\Form;
5 use Drupal\Core\Form\FormBase;
6 use Drupal\Core\Form\FormStateInterface;
9 * Builds a form to test return values for checkboxes.
11 class FormTestCheckboxTypeJugglingForm extends FormBase {
16 public function getFormId() {
17 return 'form_test_checkbox_type_juggling';
23 public function buildForm(array $form, FormStateInterface $form_state, $default_value = NULL, $return_value = NULL) {
25 '#title' => t('Checkbox'),
26 '#type' => 'checkbox',
27 '#return_value' => $return_value,
28 '#default_value' => $default_value,
36 public function submitForm(array &$form, FormStateInterface $form_state) {