public function Gridstack::submitOptionsForm in Sooperthemes GridStack 8
Handle any special handling on the validate form.
Overrides PluginBase::submitOptionsForm
File
- src/
Plugin/ views/ style/ Gridstack.php, line 120
Class
- Gridstack
- Style plugin to render each item in an ordered or unordered list.
Namespace
Drupal\sooperthemes_gridstack\Plugin\views\styleCode
public function submitOptionsForm(&$form, FormStateInterface $form_state) {
parent::submitOptionsForm($form, $form_state);
// Plugin options form doesn't respect #tree property.
$style_options = $form_state
->getValue('style_options');
foreach ($style_options['more'] as $option_name => $option) {
$style_options[$option_name] = $option;
}
unset($style_options['more']);
$form_state
->setValue('style_options', $style_options);
}