You are here

public function AjaxHistory::submitOptionsForm in Views AJAX History 8

Handle any special handling on the validate form.

Overrides DisplayExtenderPluginBase::submitOptionsForm

File

src/Plugin/views/display_extender/AjaxHistory.php, line 55

Class

AjaxHistory
Ajax history display extender plugin.

Namespace

Drupal\views_ajax_history\Plugin\views\display_extender

Code

public function submitOptionsForm(&$form, FormStateInterface $form_state) {
  if ($form_state
    ->get('section') == 'use_ajax') {
    $this->options['enable_history'] = $form_state
      ->getValue('enable_history');
  }
}