function PluginBase::buildOptionsForm

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::buildOptionsForm()
  2. 8.9.x core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::buildOptionsForm()
  3. 10 core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::buildOptionsForm()

Overrides ViewsPluginInterface::buildOptionsForm

6 calls to PluginBase::buildOptionsForm()
HandlerBase::buildOptionsForm in core/modules/views/src/Plugin/views/HandlerBase.php
None::buildOptionsForm in core/modules/views/src/Plugin/views/pager/None.php
Provide the default form for setting options.
RowPluginBase::buildOptionsForm in core/modules/views/src/Plugin/views/row/RowPluginBase.php
Provide a form for setting options.
Some::buildOptionsForm in core/modules/views/src/Plugin/views/pager/Some.php
Provide the default form for setting options.
StylePluginBase::buildOptionsForm in core/modules/views/src/Plugin/views/style/StylePluginBase.php

... See full list

16 methods override PluginBase::buildOptionsForm()
ArgumentDefaultPluginBase::buildOptionsForm in core/modules/views/src/Plugin/views/argument_default/ArgumentDefaultPluginBase.php
Provide the default form for setting options.
ArgumentValidatorPluginBase::buildOptionsForm in core/modules/views/src/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php
Provides the default form for setting options.
DisplayExtenderPluginBase::buildOptionsForm in core/modules/views/src/Plugin/views/display_extender/DisplayExtenderPluginBase.php
Provide a form to edit options for this plugin.
DisplayPluginBase::buildOptionsForm in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Provide a form to edit options for this plugin.
ExposedFormPluginBase::buildOptionsForm in core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php
Provide a form to edit options for this plugin.

... See full list

File

core/modules/views/src/Plugin/views/PluginBase.php, line 270

Class

PluginBase
Base class for any views plugin types.

Namespace

Drupal\views\Plugin\views

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
    // Some form elements belong in a fieldset for presentation, but can't
    // be moved into one because of the $form_state->getValues() hierarchy. Those
    // elements can add a #fieldset => 'fieldset_name' property, and they'll
    // be moved to their fieldset during pre_render.
    $form['#pre_render'][] = [
        static::class,
        'preRenderAddFieldsetMarkup',
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.