public function Gridstack::submitOptionsForm in DXPR GridStack 8
Same name and namespace in other branches
- 1.0.x src/Plugin/views/style/Gridstack.php \Drupal\dxpr_gridstack\Plugin\views\style\Gridstack::submitOptionsForm()
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\dxpr_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);
}