Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ViewsPluginInterface.php

function 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 75

Class

ViewsPluginInterface
Provides an interface for all views plugins.

Namespace

Drupal\views\Plugin\views

Code

public static function preRenderAddFieldsetMarkup(array $form);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal