function BigPipeTestForm::buildForm
Same name in other branches
- 8.9.x core/modules/big_pipe/tests/modules/big_pipe_test/src/Form/BigPipeTestForm.php \Drupal\big_pipe_test\Form\BigPipeTestForm::buildForm()
- 10 core/modules/big_pipe/tests/modules/big_pipe_test/src/Form/BigPipeTestForm.php \Drupal\big_pipe_test\Form\BigPipeTestForm::buildForm()
- 11.x core/modules/big_pipe/tests/modules/big_pipe_test/src/Form/BigPipeTestForm.php \Drupal\big_pipe_test\Form\BigPipeTestForm::buildForm()
Overrides FormInterface::buildForm
File
-
core/
modules/ big_pipe/ tests/ modules/ big_pipe_test/ src/ Form/ BigPipeTestForm.php, line 25
Class
- BigPipeTestForm
- Form to test BigPipe.
Namespace
Drupal\big_pipe_test\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form['#token'] = FALSE;
$form['big_pipe'] = [
'#type' => 'checkboxes',
'#title' => $this->t('BigPipe works…'),
'#options' => [
'js' => $this->t('… with JavaScript'),
'nojs' => $this->t('… without JavaScript'),
],
];
return $form;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.