Same name and namespace in other branches
  1. 8.x-1.x src/Plugin/QuickRender/QuickUiTabs.php \Drupal\quicktabs\Plugin\QuickRender\QuickUiTabs::optionsForm()

Overrides QuickRenderer::optionsForm

Fichier

plugins/QuickUiTabs.inc, line 8

Classe

QuickUiTabs
Renders the content using the jQuery UI Tabs widget.

Code

public static function optionsForm($qt) {
    $form = array();
    $form['history'] = array(
        '#type' => 'checkbox',
        '#title' => 'History',
        '#description' => t('Store tab state in the URL allowing for browser back / forward and bookmarks.'),
        '#default_value' => isset($qt->renderer) && $qt->renderer == 'ui_tabs' && isset($qt->options['history']) && $qt->options['history'],
    );
    return $form;
}