public function ExcelExport::submitOptionsForm in Excel Serialization 8
Same name in this branch
- 8 src/Plugin/views/display/ExcelExport.php \Drupal\xls_serialization\Plugin\views\display\ExcelExport::submitOptionsForm()
- 8 src/Plugin/views/style/ExcelExport.php \Drupal\xls_serialization\Plugin\views\style\ExcelExport::submitOptionsForm()
Handle any special handling on the validate form.
Overrides Serializer::submitOptionsForm
File
- src/
Plugin/ views/ style/ ExcelExport.php, line 150
Class
- ExcelExport
- A style plugin for Excel export views.
Namespace
Drupal\xls_serialization\Plugin\views\styleCode
public function submitOptionsForm(&$form, FormStateInterface $form_state) {
// Transform the formats back into an array.
$format = $form_state
->getValue([
'style_options',
'formats',
]);
$form_state
->setValue([
'style_options',
'formats',
], [
$format => $format,
]);
parent::submitOptionsForm($form, $form_state);
}