public function HandlerBase::buildOptionsForm in Views (for Drupal 7) 8.3
Build the options form.
Overrides PluginBase::buildOptionsForm
6 calls to HandlerBase::buildOptionsForm()
- AreaPluginBase::buildOptionsForm in lib/
Drupal/ views/ Plugin/ views/ area/ AreaPluginBase.php - Default options form that provides the label widget that all fields should have.
- ArgumentPluginBase::buildOptionsForm in lib/
Drupal/ views/ Plugin/ views/ argument/ ArgumentPluginBase.php - Build the options form.
- FieldPluginBase::buildOptionsForm in lib/
Drupal/ views/ Plugin/ views/ field/ FieldPluginBase.php - Default options form that provides the label widget that all fields should have.
- FilterPluginBase::buildOptionsForm in lib/
Drupal/ views/ Plugin/ views/ filter/ FilterPluginBase.php - Provide the basic form which calls through to subforms. If overridden, it is best to call through to the parent, or to at least make sure all of the functions in this form are called.
- RelationshipPluginBase::buildOptionsForm in lib/
Drupal/ views/ Plugin/ views/ relationship/ RelationshipPluginBase.php - Default options form that provides the label widget that all fields should have.
6 methods override HandlerBase::buildOptionsForm()
- AreaPluginBase::buildOptionsForm in lib/
Drupal/ views/ Plugin/ views/ area/ AreaPluginBase.php - Default options form that provides the label widget that all fields should have.
- ArgumentPluginBase::buildOptionsForm in lib/
Drupal/ views/ Plugin/ views/ argument/ ArgumentPluginBase.php - Build the options form.
- FieldPluginBase::buildOptionsForm in lib/
Drupal/ views/ Plugin/ views/ field/ FieldPluginBase.php - Default options form that provides the label widget that all fields should have.
- FilterPluginBase::buildOptionsForm in lib/
Drupal/ views/ Plugin/ views/ filter/ FilterPluginBase.php - Provide the basic form which calls through to subforms. If overridden, it is best to call through to the parent, or to at least make sure all of the functions in this form are called.
- RelationshipPluginBase::buildOptionsForm in lib/
Drupal/ views/ Plugin/ views/ relationship/ RelationshipPluginBase.php - Default options form that provides the label widget that all fields should have.
File
- lib/
Drupal/ views/ Plugin/ views/ HandlerBase.php, line 280 - Definition of Drupal\views\Plugin\views\HandlerBase.
Class
Namespace
Drupal\views\Plugin\viewsCode
public function buildOptionsForm(&$form, &$form_state) {
// Some form elements belong in a fieldset for presentation, but can't
// be moved into one because of the form_state['values'] hierarchy. Those
// elements can add a #fieldset => 'fieldset_name' property, and they'll
// be moved to their fieldset during pre_render.
$form['#pre_render'][] = 'views_ui_pre_render_add_fieldset_markup';
$form['admin_label'] = array(
'#type' => 'textfield',
'#title' => t('Administrative title'),
'#description' => t('This title will be displayed on the views edit page instead of the default one. This might be useful if you have the same item twice.'),
'#default_value' => $this->options['admin_label'],
'#fieldset' => 'more',
);
// This form is long and messy enough that the "Administrative title" option
// belongs in a "more options" fieldset at the bottom of the form.
$form['more'] = array(
'#type' => 'fieldset',
'#title' => t('More'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#weight' => 150,
);
// Allow to alter the default values brought into the form.
drupal_alter('views_handler_options', $this->options, $view);
}