public function Serializer::submitOptionsForm

Handle any special handling on the validate form.

Overrides PluginBase::submitOptionsForm

File

drupal/core/modules/rest/lib/Drupal/rest/Plugin/views/style/Serializer.php, line 109
Contains \Drupal\rest\Plugin\views\style\Serializer.

Class

Serializer
The style plugin for serialized output formats.

Namespace

Drupal\rest\Plugin\views\style

Code

public function submitOptionsForm(&$form, &$form_state) {
  parent::submitOptionsForm($form, $form_state);
  $form_state['values']['style_options']['formats'] = array_filter($form_state['values']['style_options']['formats']);
}