public static function ViewsPluginInterface::preRenderAddFieldsetMarkup in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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 74 - Contains \Drupal\views\Plugin\views\ViewsPluginInterface.
Class
- ViewsPluginInterface
- Provides an interface for all views plugins.
Namespace
Drupal\views\Plugin\viewsCode
public static function preRenderAddFieldsetMarkup(array $form);