[]]; $options['responsive'] = ['default' => FALSE]; return $options; } /** * Render the given style. */ public function buildOptionsForm(&$form, FormStateInterface $form_state) { parent::buildOptionsForm($form, $form_state); $form['responsive'] = [ '#type' => 'checkbox', '#title' => $this->t('Responsive'), '#default_value' => $this->options['responsive'], '#description' => $this->t('To make a table scroll horizontally on small devices.'), ]; $form['bootstrap_styles'] = [ '#title' => $this->t('Bootstrap styles'), '#type' => 'checkboxes', '#default_value' => $this->options['bootstrap_styles'], '#options' => [ 'striped' => $this->t('Striped'), 'bordered' => $this->t('Bordered'), 'hover' => $this->t('Hover'), 'condensed' => $this->t('Condensed'), ], ]; } }