You are here

function jssor_views_plugins_style::options_form in Jssor Slider 7

Provide a form to edit options for this plugin.

Overrides views_plugin_style::options_form

File

./jssor_views_plugins_style.inc, line 20

Class

jssor_views_plugins_style

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);

  // Manually load the class files.
  self::bootstrapClasses();
  $jssor = new \Drupal\jssor\Plugin\views\style\Jssor($this);
  $form_state_holder = new \Drupal\Core\Form\FormStateInterface($form_state);
  $jssor
    ->buildOptionsForm($form, $form_state_holder);

  // Do some D8 backporting for form element types.
  $form['global'] = $this::fixD8FormTypes($form['global']);
  $form['bulletnavigator'] = $this::fixD8FormTypes($form['bulletnavigator']);
}