public function ViewsEFFieldset::submitOptionsForm in Views Exposed Form Fieldset 8
Handle any special handling on the validate form.
Overrides DisplayExtenderPluginBase::submitOptionsForm
File
- src/
Plugin/ views/ display_extender/ ViewsEFFieldset.php, line 371
Class
- ViewsEFFieldset
- Views EF Fieldset display extender plugin.
Namespace
Drupal\views_ef_fieldset\Plugin\views\display_extenderCode
public function submitOptionsForm(&$form, FormStateInterface $form_state) {
// Only process options if this is an unrelated form.
if ($form_state
->get('section') === 'exposed_form_options') {
$views_ef_fieldset = $form_state
->getValue('views_ef_fieldset');
foreach ($views_ef_fieldset['options']['sort'] as $key => $data) {
$data += $data['item'];
unset($data['item']);
$views_ef_fieldset['options']['sort'][$key] = $data;
}
$this->options['views_ef_fieldset'] = $views_ef_fieldset;
}
parent::submitOptionsForm($form, $form_state);
}