function ViewsPluginInterface::preRenderAddFieldsetMarkup

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

Moves form elements into fieldsets for presentation purposes.

Many views forms use #tree = TRUE to keep their values in a hierarchy for easier storage. Moving the form elements into fieldsets during form building would break up that hierarchy. Therefore, we wait until the pre_render stage, where any changes we make affect presentation only and aren't reflected in $form_state->getValues().

Parameters

array $form: The form build array to alter.

Return value

array The form build array.

1 method overrides ViewsPluginInterface::preRenderAddFieldsetMarkup()
PluginBase::preRenderAddFieldsetMarkup in core/modules/views/src/Plugin/views/PluginBase.php
Moves form elements into fieldsets for presentation purposes.

File

core/modules/views/src/Plugin/views/ViewsPluginInterface.php, line 69

Class

ViewsPluginInterface
Provides an interface for all views plugins.

Namespace

Drupal\views\Plugin\views

Code

public static function preRenderAddFieldsetMarkup(array $form);

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