public function DataCollectorTableTestForm::submitForm in Charts 8.4
Same name and namespace in other branches
- 5.0.x tests/modules/charts_test/src/Form/DataCollectorTableTestForm.php \Drupal\charts_test\Form\DataCollectorTableTestForm::submitForm()
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormInterface::submitForm
File
- tests/
modules/ charts_test/ src/ Form/ DataCollectorTableTestForm.php, line 42
Class
- DataCollectorTableTestForm
- Class DataCollectorTableTestForm.
Namespace
Drupal\charts_test\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
// {"name":"Number of players","color":"#0d233a","data":
// [50,60,100,132,133,234]},{"name":"Number of coaches","color":.
// "#ff0000","data":
// [50,80,100,32,133,234]}.
// A,b,c,d,e,f
}