public function YearlySalesReport::submitForm in Ubercart 8.4
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
- uc_report/
src/ Form/ YearlySalesReport.php, line 41
Class
- YearlySalesReport
- Generates yearly sales report.
Namespace
Drupal\uc_report\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$form_state
->setRedirect('uc_report.yearly.sales', [
'year' => $form_state
->getValue('year'),
]);
}