public function ViewsAjax::submitOptionsForm in Views Ajax Get 8
Same name and namespace in other branches
- 2.0.x src/Plugin/views/display_extender/ViewsAjax.php \Drupal\views_ajax_get\Plugin\views\display_extender\ViewsAjax::submitOptionsForm()
Handle any special handling on the validate form.
Overrides DisplayExtenderPluginBase::submitOptionsForm
File
- src/
Plugin/ views/ display_extender/ ViewsAjax.php, line 47
Class
- ViewsAjax
- Defines a display extender for views_ajax_get.
Namespace
Drupal\views_ajax_get\Plugin\views\display_extenderCode
public function submitOptionsForm(&$form, FormStateInterface $form_state) {
parent::submitOptionsForm($form, $form_state);
switch ($form_state
->get('section')) {
case 'use_ajax':
$this->options['ajax_get'] = $form_state
->getValue('ajax_get');
break;
}
}