public function Calendar::submitOptionsForm in Calendar 8
Handle any special handling on the validate form.
Overrides PluginBase::submitOptionsForm
File
- src/
Plugin/ views/ style/ Calendar.php, line 496
Class
- Calendar
- Views style plugin for the Calendar module.
Namespace
Drupal\calendar\Plugin\views\styleCode
public function submitOptionsForm(&$form, FormStateInterface $form_state) {
$multiday_hidden = $form_state
->getValue([
'style_options',
'multiday_hidden',
]);
$form_state
->setValue([
'style_options',
'multiday_hidden',
], array_filter($multiday_hidden));
parent::submitOptionsForm($form, $form_state);
}