public function DataCollectorTableTestForm::buildForm in Charts 5.0.x
Same name and namespace in other branches
- 8.4 tests/modules/charts_test/src/Form/DataCollectorTableTestForm.php \Drupal\charts_test\Form\DataCollectorTableTestForm::buildForm()
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides FormInterface::buildForm
File
- tests/
modules/ charts_test/ src/ Form/ DataCollectorTableTestForm.php, line 28
Class
- DataCollectorTableTestForm
- Class DataCollectorTableTestForm.
Namespace
Drupal\charts_test\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form['series'] = [
'#type' => 'chart_data_collector_table',
'#initial_rows' => self::INITIAL_ROWS,
'#initial_columns' => self::INITIAL_COLUMNS,
'#table_drag' => FALSE,
];
return $form;
}