9770762fef2ccd57798273b1faf1566893ebd1f1
[yaffs-website] / web / core / modules / big_pipe / tests / modules / big_pipe_test / src / Form / BigPipeTestForm.php
1 <?php
2
3 namespace Drupal\big_pipe_test\Form;
4
5 use Drupal\Core\Form\FormBase;
6 use Drupal\Core\Form\FormStateInterface;
7
8 class BigPipeTestForm extends FormBase {
9
10   /**
11    * {@inheritdoc}
12    */
13   public function getFormId() {
14     return 'big_pipe_test_form';
15   }
16
17   /**
18    * {@inheritdoc}
19    */
20   public function buildForm(array $form, FormStateInterface $form_state) {
21     $form['#token'] = FALSE;
22
23     $form['big_pipe'] = [
24       '#type' => 'checkboxes',
25       '#title' => $this->t('BigPipe works…'),
26       '#options' => [
27         'js' => $this->t('… with JavaScript'),
28         'nojs' => $this->t('… without JavaScript'),
29       ],
30     ];
31
32     return $form;
33   }
34
35   /**
36    * {@inheritdoc}
37    */
38   public function submitForm(array &$form, FormStateInterface $form_state) {}
39
40 }