public function SmartDateOverrideForm::submitForm in Smart Date 3.x
Same name and namespace in other branches
- 8.2 modules/smart_date_recur/src/Form/SmartDateOverrideForm.php \Drupal\smart_date_recur\Form\SmartDateOverrideForm::submitForm()
- 3.0.x modules/smart_date_recur/src/Form/SmartDateOverrideForm.php \Drupal\smart_date_recur\Form\SmartDateOverrideForm::submitForm()
- 3.1.x modules/smart_date_recur/src/Form/SmartDateOverrideForm.php \Drupal\smart_date_recur\Form\SmartDateOverrideForm::submitForm()
- 3.2.x modules/smart_date_recur/src/Form/SmartDateOverrideForm.php \Drupal\smart_date_recur\Form\SmartDateOverrideForm::submitForm()
- 3.3.x modules/smart_date_recur/src/Form/SmartDateOverrideForm.php \Drupal\smart_date_recur\Form\SmartDateOverrideForm::submitForm()
- 3.4.x modules/smart_date_recur/src/Form/SmartDateOverrideForm.php \Drupal\smart_date_recur\Form\SmartDateOverrideForm::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
- modules/
smart_date_recur/ src/ Form/ SmartDateOverrideForm.php, line 168
Class
- SmartDateOverrideForm
- Form controller for Smart Date Recur instace override edit forms.
Namespace
Drupal\smart_date_recur\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->override($form_state);
// TODO: force refresh of parent entity.
// TODO: output message about operation performed.
// Redirect to rrule instance listing.
$form_state
->setRedirect('smart_date_recur.instances', [
'rrule' => $form_state
->getValue('rrule'),
]);
}