public function DateFormatForm::submitForm in Booking and Availability Management Tools for Drupal 8
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 ConfigFormBase::submitForm
File
- src/
Form/ DateFormatForm.php, line 66 - Contains \Drupal\bat\Form\DateFormatForm.
Class
Namespace
Drupal\bat\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('bat.settings')
->set('bat_date_format', $form_state
->getValue('bat_date_format'))
->set('bat_daily_date_format', $form_state
->getValue('bat_daily_date_format'))
->save();
parent::submitForm($form, $form_state);
}