public function HandlerBase::buildOptionsForm

Build the options form.

Overrides PluginBase::buildOptionsForm

6 calls to HandlerBase::buildOptionsForm()
AreaPluginBase::buildOptionsForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/area/AreaPluginBase.php
Default options form that provides the label widget that all fields should have.
ArgumentPluginBase::buildOptionsForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
Build the options form.
FieldPluginBase::buildOptionsForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php
Default options form that provides the label widget that all fields should have.
FilterPluginBase::buildOptionsForm in drupal/core/modules/views/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 drupal/core/modules/views/lib/Drupal/views/Plugin/views/relationship/RelationshipPluginBase.php
Default options form that provides the label widget that all fields should have.

... See full list

6 methods override HandlerBase::buildOptionsForm()
AreaPluginBase::buildOptionsForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/area/AreaPluginBase.php
Default options form that provides the label widget that all fields should have.
ArgumentPluginBase::buildOptionsForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
Build the options form.
FieldPluginBase::buildOptionsForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php
Default options form that provides the label widget that all fields should have.
FilterPluginBase::buildOptionsForm in drupal/core/modules/views/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 drupal/core/modules/views/lib/Drupal/views/Plugin/views/relationship/RelationshipPluginBase.php
Default options form that provides the label widget that all fields should have.

... See full list

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/HandlerBase.php, line 273
Definition of Drupal\views\Plugin\views\HandlerBase.

Class

HandlerBase

Namespace

Drupal\views\Plugin\views

Code

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 "more options" details at the bottom of the form.
  $form['more'] = array(
    '#type' => 'details',
    '#title' => t('More'),
    '#collapsed' => TRUE,
    '#weight' => 150,
  );

  // Allow to alter the default values brought into the form.
  // @todo Do we really want to keep this hook.
  \Drupal::moduleHandler()
    ->alter('views_handler_options', $this->options, $this->view);
}