You are here

public function RecipeML::submitOptionsForm in Recipe 8.2

Handle any special handling on the validate form.

Overrides PluginBase::submitOptionsForm

File

src/Plugin/views/style/RecipeML.php, line 192
Copyright (c) FormatData. All rights reserved.

Class

RecipeML
Default style plugin to render RecipeML.

Namespace

Drupal\recipe\Plugin\views\style

Code

public function submitOptionsForm(&$form, FormStateInterface $form_state) {
  parent::submitOptionsForm($form, $form_state);
  $time_fields = $form_state
    ->getValue([
    'style_options',
    'time_fields',
  ]);
  $form_state
    ->setValue([
    'style_options',
    'time_fields',
  ], array_filter($time_fields));
}