Same name and namespace in other branches
- 7.x-3.x plugins/QuickUiTabs.inc \QuickUiTabs::optionsForm()
Method for returning the form elements to display for this renderer type on the admin form.
Paramètres
$qt \Drupal\quicktabs\QuickSet object representing the Quicktabs instance that the tabs are: being built for.
Return value
array
Overrides QuickRenderer::optionsForm
Fichier
-
src/
Plugin/ QuickRender/ QuickUiTabs.php, line 19
Classe
- QuickUiTabs
- Renders the content using the jQuery UI Tabs widget.
Namespace
Drupal\quicktabs\Plugin\QuickRenderCode
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;
}