public function IcalDisplay::submitOptionsForm in Views iCal 8
Handle any special handling on the validate form.
Overrides Feed::submitOptionsForm
File
- src/
Plugin/ views/ display/ IcalDisplay.php, line 115
Class
- IcalDisplay
- Provides a separate iCal display type.
Namespace
Drupal\views_ical\Plugin\views\displayCode
public function submitOptionsForm(&$form, FormStateInterface $form_state) {
parent::submitOptionsForm($form, $form_state);
$section = $form_state
->get('section');
switch ($section) {
case 'path':
$this
->setOption('filename', $form_state
->getValue('filename'));
break;
}
}