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. 11.x core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::buildOptionsForm()

Overrides ViewsPluginInterface::buildOptionsForm

13 calls to PluginBase::buildOptionsForm()
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.
HandlerBase::buildOptionsForm in core/modules/views/src/Plugin/views/HandlerBase.php
Provide a form to edit options for this plugin.
None::buildOptionsForm in core/modules/views/src/Plugin/views/pager/None.php
Provide the default form for setting options.
Permission::buildOptionsForm in core/modules/user/src/Plugin/views/access/Permission.php
Provide a form to edit options for this plugin.

... 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.